Check if a token is approved for transfer by a given account, optionally
checking an approval_id
Arguments:
token_id: the token for which to revoke an approval
approved_account_id: the account to check the existence of in approvals
approval_id: an optional approval ID to check against current approval ID for given account
Returns:
if approval_id given, true if approved_account_id is approved with given approval_id
otherwise, true if approved_account_id is in list of approved accounts
Check if a token is approved for transfer by a given account, optionally checking an approval_id
Arguments:
token_id
: the token for which to revoke an approvalapproved_account_id
: the account to check the existence of inapprovals
approval_id
: an optional approval ID to check against current approval ID for given accountReturns: if
approval_id
given,true
ifapproved_account_id
is approved with givenapproval_id
otherwise,true
ifapproved_account_id
is in list of approved accountsview