ERC721APermit4494Facet
ERC721APermit4494Facet
Requires the ERC712Facet
.
nonces
function nonces(uint256 tokenId_) external view returns (uint256)
Returns the nonce of an NFT - useful for creating permits
Parameters
Name
Type
Description
tokenId_
uint256
Return Values
Name
Type
Description
[0]
uint256
the uint256 representation of the nonce
permit
function permit(address spender, uint256 tokenId, uint256 deadline, bytes signature) external
Function to approve by way of owner signature
Parameters
Name
Type
Description
spender
address
the address to approve
tokenId
uint256
the index of the NFT to approve the spender on
deadline
uint256
a timestamp expiry for the permit
signature
bytes
a traditional or EIP-2098 signature
_getApproved
function _getApproved(uint256 tokenId) internal view virtual returns (address)
_isApprovedOrOwner
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool)
Was this helpful?