Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants