Deploy cw4-group
Goal: deploy a cw4 group contract which backs a cw3-flex-multisig contract
Requires a localnet to be running.
Download contract bytecode
curl -Lso cw4_group.wasm \
https://github.com/CosmWasm/cw-plus/releases/download/v1.1.2/cw4_group.wasmUpload cw4 contract
Stores the contract bytecode onchain so that it can be instantiated (next step).
FROM=nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl
nibid tx wasm store cw4_group.wasm \
--from $FROM \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.025unibi \
--yes | txTake note of the code id for the next step, e.g.
{
"type": "store_code",
"attributes": [
{
"key": "code_checksum",
"value": "dd2216f1114fc68bc4c043701b02e55ce3e5598cdeb616985388215a400db277",
"index": true
},
{
"key": "code_id",
"value": "1",
"index": true
}
]
}Instantiate cw4 contract
A contract instance is created from bytecode stored onchain.
Use the code id from the previous step.
Save the contract address for cw3 contract instantiation, e.g.
Last updated
Was this helpful?