Caller of the method must attach a deposit of at least 1 yoctoⓃ for
security purposes
Contract MAY require caller to attach larger deposit, to cover cost of
storing approver data
Contract MUST panic if called by someone other than token owner
Contract MUST panic if addition would cause nft_revoke_all to exceed
single-block gas limit
Contract MUST increment approval ID even if re-approving an account
If successfully approved or if had already been approved, and if msg is
present, contract MUST call nft_on_approve on account_id. See
nft_on_approve description below for details.
Arguments:
token_id: the token for which to add an approval
account_id: the account to add to approvals
msg: optional string to be passed to nft_on_approve
Returns void, if no msg given. Otherwise, returns promise call to
nft_on_approve, which can resolve with whatever it wants.
Add an approved account for a specific token.
Requirements
nft_revoke_all
to exceed single-block gas limitmsg
is present, contract MUST callnft_on_approve
onaccount_id
. Seenft_on_approve
description below for details.Arguments:
token_id
: the token for which to add an approvalaccount_id
: the account to add toapprovals
msg
: optional string to be passed tonft_on_approve
Returns void, if no
msg
given. Otherwise, returns promise call tonft_on_approve
, which can resolve with whatever it wants.change