Function secret_toolkit_snip721::handle::approve_msg
source · pub fn approve_msg(
spender: String,
token_id: String,
expires: Option<Expiration>,
padding: Option<String>,
block_size: usize,
code_hash: String,
contract_addr: String
) -> StdResult<CosmosMsg>
Expand description
Returns a StdResultApprove
Arguments
spender
- the address being granted permission to transfer the tokentoken_id
- ID String of the token that can be transferredexpires
- Optional Expiration of this approvalpadding
- Optional String used as padding if you don’t want to use block paddingblock_size
- pad the message to blocks of this sizecode_hash
- String holding the code hash of the contract being calledcontract_addr
- address of the contract being called