Skip to content

Commit

Permalink
feat: check if code exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kienn6034 committed Apr 2, 2024
1 parent 5575f5e commit 7126981
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Binary file removed scripts/upgrade/bin/centaurid-old
Binary file not shown.
1 change: 0 additions & 1 deletion scripts/upgrade/bin/mykey

This file was deleted.

10 changes: 9 additions & 1 deletion scripts/upgrade/v6_to_7/post_08_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ HOME_DIR="mytestnet"

sleep 2

./_build/new/centaurid query ibc-wasm checksums --home $HOME_DIR
checksum=$(./_build/new/centaurid query ibc-wasm checksums --home $HOME_DIR -o json | jq -r '.checksums[0]')

if ./_build/new/centaurid query ibc-wasm code $checksum --home $HOME_DIR -o json &> /dev/null; then
echo "Code with checksum $checksum exists."
else
echo "Code with checksum $checksum does not exist."
fi


0 comments on commit 7126981

Please sign in to comment.