Tutorial
How to use wasm CLI
First of all, install ununifid
to use wasm CLI and Rust. To learn how to install ununifid
, see here
There are two ways of using wasm CLI.
Compiling and Testing a Contract
Quoted from CosmWasm Documentation
Unit Tests
Quoted from CosmWasm Documentation
Build with Optimizer
Quoted from CosmWasm Documentation
Deployment and Interaction
Quoted from CosmWasm Documentation
To deploy your wasm smart contract that you built, use ununifid tx wasm store
commands.
Converse to Solidity smart contracts, CosmWasm has two stages to activate smart contracts. That are deploy and instantiate. So after you deployed your wasm smart contract, use ununifid tx wasm instantiate
commands.
Last updated