Commit a686a906 by Francisco Giordano

Make ERC721._approve internal

(cherry picked from commit bb068ed5d95cc63176d7b5bb6d2d2864cac24909)
parent fa64a1ce
...@@ -449,7 +449,12 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable ...@@ -449,7 +449,12 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
return (retval == _ERC721_RECEIVED); return (retval == _ERC721_RECEIVED);
} }
function _approve(address to, uint256 tokenId) private { /**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to; _tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment