August 2019
Intermediate to advanced
486 pages
13h 52m
English
The transferFrom() function is a public function, used to transfer the given tokenId from the owner's account to the receiver's account. For this function to work, the approval must have been given previously by the owner to the address of the caller of this function.
This function takes the following arguments:
Let's look at the transferFrom() function code:
function transferFrom(address from, address to, uint256 tokenId) public { require(_isApprovedOrOwner(msg.sender, tokenId)); _transferFrom(from, to, tokenId);}
As you can see in ...