Commit 1f9c9709 by Francisco Giordano

Make ERC721._approve internal

(cherry picked from commit df8acac20a37877664d274c62a82da563a665ac0)
parent 5b42f7ae
...@@ -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