August 2019
Intermediate to advanced
486 pages
13h 52m
English
_transferFrom() is an internal function, which is used to transfer the given token from the current owner's account to the receiver's account.
The function takes three arguments:
Let's look at the _transferFrom() function code:
function _transferFrom(address from, address to, uint256 tokenId) internal { require(ownerOf(tokenId) == from); require(to != address(0)); _clearApproval(tokenId); _ownedTokensCount[from] = _ownedTokensCount[from].sub(1); _ownedTokensCount[to] ...