Closed 99Kies closed 1 year ago
Can I pass in the type Uint256 in the cli. cli or sdk supports several data types.
Uint256
cli
sdk
such as:
#[cw_serde] pub enum ExecuteMsg { SetParams { flag: Uint256, }, ... } #[cw_serde] #[derive(QueryResponses)] pub enum QueryMsg { #[returns(Period)] GetPeriod { index: Uint256 }, ... }
Yes you can. In fact, it is designed for that. See https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md for information how to encode it in JSON.
Can I pass in the type
Uint256
in thecli
.cli
orsdk
supports several data types.such as: