Skip to content

Commit

Permalink
Intantiation test script now has an admin choice.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabmitra committed Aug 17, 2023
1 parent 3224838 commit 4e35e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testutils/instantiate-local-with-admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ then
exit 1
else
CODE_ID=$1

fi

INIT='{"gp":"tp13k86awgexqdt2f2wtu6ukdhrg8dc8nrtmc49pl","securities":[{"name":"Security1","amount":"1000","security_type":{"tranche":{}},"minimum_amount":"10","price_per_unit":{"denom":"nhash","amount":"1000000000"}}],"capital_denom":"nhash"}'
${PROVENANCE_DIR}/build/provenanced -t tx wasm instantiate "$CODE_ID" "$INIT" --label "securitization.pb" --from validator --home ${PROVENANCE_DIR}/build/run/provenanced --node http://localhost:26657 --chain-id testing --gas-prices 190500nhash --gas auto --gas-adjustment 2 --output json -b block --admin $(provenanced keys show -a validator -t --home --home ${PROVENANCE_DIR}/build/run/provenanced) -y | jq
${PROVENANCE_DIR}/build/provenanced -t tx wasm instantiate "$CODE_ID" "$INIT" --label "securitization.pb" --from validator --home ${PROVENANCE_DIR}/build/run/provenanced --node http://localhost:26657 --chain-id testing --gas-prices 190500nhash --gas auto --gas-adjustment 2 --output json -b block --admin "$(provenanced keys show -a validator -t --home ${PROVENANCE_DIR}/build/run/provenanced)" -y | jq

0 comments on commit 4e35e6d

Please sign in to comment.