August 2019
Intermediate to advanced
486 pages
13h 52m
English
_isApprovedOrOwner() is an internal function, which is used to check whether the given address of spender is approved or an owner of the given tokenId.
This function takes two arguments:
This function returns the Boolean result. If the result is as follows:
Let's look at the _isApprovedOrOwner() function code:
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { address owner = ownerOf(tokenId) ...