Skip to content

Commit

Permalink
build(ci): fix submit_upgrade_proposal script to work with Cosmos SDK…
Browse files Browse the repository at this point in the history
… 0.47
  • Loading branch information
RiccardoM committed Aug 18, 2023
1 parent c712784 commit 1618d7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contrib/upgrade_testnet/submit_upgrade_proposal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,18 @@ for ((i = 1; i < $NODES; i++)); do
echo $NODE_SECRET | $DESMOS keys add "node$i" --recover --keyring-backend test >/dev/null 2>&1
done

sleep $SLEEP
sleep 6s

TX_FLAGS="--from node0 --chain-id $CHAIN_ID --yes --fees 100udaric --keyring-backend test"

echo ""
echo "===> Submitting upgrade proposal"
RESULT=$($DESMOS tx gov submit-proposal \
RESULT=$($DESMOS tx gov submit-legacy-proposal \
software-upgrade $UPGRADE_NAME \
--title Upgrade \
--description Description \
--upgrade-height $UPGRADE_HEIGHT \
--no-validate \
$TX_FLAGS 2>&1)

TX_HASH=$(echo "$RESULT" | grep txhash | sed -e 's/txhash: //')
Expand All @@ -79,7 +80,7 @@ sleep 6s

echo ""
echo "===> Getting proposal id"
PROPOSAL_ID=$($DESMOS q tx $TX_HASH --node $NODE --output json 2>&1 | jq .logs[0].events[4].attributes[0].value -r)
PROPOSAL_ID=$($DESMOS q tx $TX_HASH --node $NODE --output json 2>&1 | jq .logs[0].events[1].attributes[0].value -r)
echo "Proposal ID: $PROPOSAL_ID"

sleep 3s
Expand Down Expand Up @@ -116,4 +117,4 @@ while true; do
fi

sleep $SLEEP
done
done

0 comments on commit 1618d7e

Please sign in to comment.