Uploading a Contract
These are the steps to upload and instantiate a contract
Submit the upload proposal
Wait for it to pass
Submit proposal for instantiating the contract
Wait for the proposal to pass
The contract is now instantiated and ready to be interacted with.
See the list of codes that was uploaded previously.
To upload the contract via proposal
The $KEY
can be any valid persistenceAddress. Make sure it has some tokens.
If the contract is uploaded successfully, i.e., the above proposal is passed, then the contract will be instantiated via another gov-proposal
Get the $CODE_ID from wasm list-code
after the proposal passes and proceed towards instantiation
The $KEY
can be any valid persistenceAddress. Make sure it has some tokens.
The $INIT
variable has to be in a json structure with all the variables needed for the contract example (init variable for the cw20 contract) :
After the proposal passes, the contract will be instantiated and can be interacted with!!
For more info check out the following link :
Last updated