encodeERC721ApproveCall static method
Uint8List
encodeERC721ApproveCall(
- EthereumAddress tokenAddress,
- EthereumAddress spender,
- BigInt tokenId
Encodes the data for an ERC721 'approve' operation.
tokenAddress
- Address of the ERC721 token contract.
spender
- Address which will be approved to spend the tokens.
amount
- Amount of tokens to approve.
Implementation
static Uint8List encodeERC721ApproveCall(
EthereumAddress tokenAddress,
EthereumAddress spender,
BigInt tokenId,
) {
return _encodeContractCall(
'ERC721',
tokenAddress,
'approve',
[spender, tokenId],
);
}