Skip to content

Commit

Permalink
finalize script upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
tungleanh0902 committed Mar 5, 2024
1 parent cdec546 commit 534ba70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions scripts/test-upgrade-cosmos-chains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ echo "setting up ibc"
source $SETUP_RELAYER_SCRIPTS

# Transfer from chain 1 to chain 2 and return balance of sender on chain 1
# echo "executing additional pre scripts from $ADDITIONAL_PRE_SCRIPTS"
# bash ./scripts/upgrade/v_6_4_6/pre-script-ibc-transfer.sh

echo "executing additional pre scripts from pre-script-ica.sh"
bash ./scripts/upgrade/v_6_4_6/pre-script-ica.sh
echo "executing additional pre scripts from $ADDITIONAL_PRE_SCRIPTS"
bash ./scripts/upgrade/v_6_4_6/pre-script-ibc-transfer.sh

run_fork () {
echo "forking"
Expand Down Expand Up @@ -150,8 +147,8 @@ CONTINUE="true" bash scripts/two-testnodes.sh _build/new/picad

sleep 5

# echo "executing additional post scripts from $ADDITIONAL_AFTER_SCRIPTS"
# bash ./scripts/upgrade/v_6_4_6/post-script-ibc-transfer.sh
echo "executing additional post scripts from $ADDITIONAL_AFTER_SCRIPTS"
bash ./scripts/upgrade/v_6_4_6/post-script-ibc-transfer.sh

echo ""
echo "#########################################################"
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/v_6_4_6/post-script-ibc-transfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ UPICA_DENOM=stake
WALLET_1=$($NEW_BINARY keys show wallet1 -a --keyring-backend test --home $CHAIN_DIR/test-1)
WALLET_2=$($BINARY keys show wallet2 -a --keyring-backend test --home $CHAIN_DIR/test-2)

ACCOUNT_BALANCE_OF_WALLET1=$($NEW_BINARY q bank balances $WALLET_1 --chain-id test-1 --home $CHAIN_DIR/test-1 --node tcp://localhost:16657 -o json | jq -r '.balances[0].amount')
ACCOUNT_BALANCE_OF_WALLET1=$($NEW_BINARY q bank balances $WALLET_1 --chain-id test-1 --node tcp://localhost:16657 -o json | jq -r '.balances[0].amount')
echo "CHECK BALANCE POST UPGRADE: $ACCOUNT_BALANCE_OF_WALLET1"

echo "Sending tokens from validator wallet on test-1 to validator wallet on test-2"
Expand Down

0 comments on commit 534ba70

Please sign in to comment.