This will result in an artifact called cw_erc20.wasm being created in the artifacts directory.
Uploading
You can now upload, or 'store' this to the chain via your local node.
1
cd artifacts
2
junod tx wasm store cw_erc20.wasm --from <your-key> --chain-id=<chain-id> --gas auto
Copied!
You will need to look in the output for this command for the code ID of the contract. In the JSON, it will look like {"key":"code_id","value":"6"} in the output.
Alternatively, you can capture the output of the command run above, by doing these steps instead, and use the jq tool installed earlier to get the code_id value:
1
cd artifacts
2
RES=$(junod tx wasm store cw_erc20.wasm --from <your-key> --chain-id=<chain-id> --gas auto -y)