Skip to content

Commit

Permalink
Pass multisig key name to upload-script
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Sep 6, 2024
1 parent 38c928f commit 491a1e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/upload_through_multisig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

set -e

if [ "$#" -ne 1 ]; then
if [ "$#" -ne 2 ]; then
echo "Too many arguments. Please provide a string containing the names of the json files of the signed transactions."
echo "Usage: bash upload_through_multisig.sh \"<SIGNED_TX_1> <SIGNED_TX_2>\""
echo "Usage: bash upload_through_multisig.sh <MULTISIG> \"<SIGNED_TX_1> <SIGNED_TX_2>\""
exit 1
fi

SIGNED_TXS=$1
MULTISIG=$1
SIGNED_TXS=$2
NODE=https://rpc.osmosis.zone:443
CHAIN=osmosis-1

osmosisd tx multisign tx.json contract-upload ${SIGNED_TXS} --chain-id ${CHAIN} --node ${NODE} --from contract-upload --output-document tx_ms.json
osmosisd tx multisign tx.json ${MULTISIG} ${SIGNED_TXS} --chain-id ${CHAIN} --node ${NODE} --from ${MULTISIG} --output-document tx_ms.json
osmosisd tx broadcast tx_ms.json --chain-id ${CHAIN} --node ${NODE}
rm tx_ms.json

0 comments on commit 491a1e2

Please sign in to comment.