From 96ede97020792fea5b8b3f1affb29d9fe5c9ba46 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Tue, 9 Dec 2025 12:51:00 +0000 Subject: [PATCH 1/2] add small fixes for cli 10.11 --- scripts/action-create-tw.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/action-create-tw.sh b/scripts/action-create-tw.sh index 541d80d..ba6b3f1 100755 --- a/scripts/action-create-tw.sh +++ b/scripts/action-create-tw.sh @@ -132,10 +132,10 @@ fi # Get if mainnet or testnet if [ "$CARDANO_NODE_NETWORK_ID" = "764824073" ] || [ "$CARDANO_NODE_NETWORK_ID" = "mainnet" ]; then echo -e "${YELLOW}Local node is using mainnet${NC}" - protocol_magic="mainnet" + protocol_magic_name="mainnet" else echo -e "${YELLOW}Local node is using a testnet${NC}" - protocol_magic="testnet" + protocol_magic_name="testnet" fi # Open the provided metadata file @@ -224,7 +224,7 @@ is_stake_address_mainnet() { } # if mainnet node then expect addresses to be mainnet -if [ "$protocol_magic" = "mainnet" ]; then +if [ "$protocol_magic_name" = "mainnet" ]; then if is_stake_address_mainnet "$deposit_return"; then echo -e "Deposit return address is a valid mainnet stake address" else @@ -288,7 +288,7 @@ fi is_stake_address_registered(){ local address="$1" - stake_address_deposit=$(cardano-cli conway query stake-address-info --address "$address" | jq -r '.[0].delegationDeposit') + stake_address_deposit=$(cardano-cli conway query stake-address-info --address "$address" | jq -r '.[0].stakeRegistrationDeposit') if [ "$stake_address_deposit" != "null" ]; then return 0 else @@ -390,7 +390,7 @@ echo -e "${CYAN}Creating action file...${NC}" cardano-cli conway governance action create-treasury-withdrawal \ --$protocol_magic \ - --governance-action-deposit $(cardano-cli conway query gov-state | jq -r '.currentPParams.govActionDeposit') \ + --governance-action-deposit $(cardano-cli conway query gov-state --$protocol_magic | jq -r '.currentPParams.govActionDeposit') \ --deposit-return-stake-address "$deposit_return" \ --anchor-url "ipfs://$ipfs_cid" \ --anchor-data-hash "$file_hash" \ From 62ede73b65302c3dea631f48d36759bb04f9084b Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Tue, 9 Dec 2025 13:00:28 +0000 Subject: [PATCH 2/2] not sure if this will work --- scripts/action-create-tw.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/action-create-tw.sh b/scripts/action-create-tw.sh index ba6b3f1..fef8189 100755 --- a/scripts/action-create-tw.sh +++ b/scripts/action-create-tw.sh @@ -389,8 +389,8 @@ echo -e " " echo -e "${CYAN}Creating action file...${NC}" cardano-cli conway governance action create-treasury-withdrawal \ - --$protocol_magic \ - --governance-action-deposit $(cardano-cli conway query gov-state --$protocol_magic | jq -r '.currentPParams.govActionDeposit') \ + --$protocol_magic_name \ + --governance-action-deposit $(cardano-cli conway query gov-state --$protocol_magic_name | jq -r '.currentPParams.govActionDeposit') \ --deposit-return-stake-address "$deposit_return" \ --anchor-url "ipfs://$ipfs_cid" \ --anchor-data-hash "$file_hash" \