Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

testnet-003 #58

Merged
merged 1 commit into from
Oct 7, 2022
Merged

testnet-003 #58

merged 1 commit into from
Oct 7, 2022

Conversation

kaisbaccour
Copy link
Contributor

No description provided.

@kaisbaccour kaisbaccour merged commit 81eb0ad into main Oct 7, 2022
@kaisbaccour kaisbaccour deleted the testnet-003 branch October 7, 2022 18:58
yq -i '(.chains[]| select(.name=="'"$chain"'").wasm.contracts[]| select(.name=="'"$contract"'").code_id) = "'"$CODE_ID"'"' config.yaml

echo "$chain - $contract : Instantiating contract"
CONTRACT_ADDRESS=$($BINARY_NAME tx wasm instantiate $CODE_ID $CONTRACT_INSTATIATION_MSG --label=$contract --no-admin --from $KEYRING_KEY_NAME --chain-id $CHAIN_ID --gas=auto --gas-adjustment 1.9 --gas-prices=$GAS_PRICES$DENOM --broadcast-mode=block --node=$NODE_URL -y |yq -r '.logs[0].events[0].attributes[0].value' )
CONTRACT_ADDRESS=$($BINARY_NAME tx wasm instantiate $CODE_ID $CONTRACT_INSTATIATION_MSG --label=$contract --admin $($BINARY_NAME keys show $KEYRING_KEY_NAME -a ) --from $KEYRING_KEY_NAME --chain-id $CHAIN_ID --gas=auto --gas-adjustment 1.2 --gas-prices=$GAS_PRICES$DENOM --broadcast-mode=block --node=$NODE_URL -y |yq -r '.logs[0].events[0].attributes[0].value' )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened CosmWasm/wasmd#1039 to allow setting the $KEYRING_KEY_NAME directly as admin. We probably have that at some point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if the admin is not mentioned then it is automatically set to the address instantiating ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you always have to set either --admin or --no-admin. But the change would allow you to do --admin $KEYRING_KEY_NAME --from $KEYRING_KEY_NAME directly without an address lookup sub-command.

@kaisbaccour kaisbaccour restored the testnet-003 branch October 8, 2022 22:25
@noislabscom noislabscom deleted the testnet-003 branch October 8, 2022 22:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants