Fix remaining revert reasons.

This commit is contained in:
Nicolás Venturo
2019-04-24 11:25:09 -03:00
parent 3682c6575c
commit 2f8e844514
3 changed files with 6 additions and 7 deletions

View File

@ -86,7 +86,7 @@ contract ERC721 is ERC165, IERC721 {
*/
function approve(address to, uint256 tokenId) public {
address owner = ownerOf(tokenId);
require(to != owner, "ERC721: transfer to current owner");
require(to != owner, "ERC721: approval to current owner");
require(msg.sender == owner || isApprovedForAll(owner, msg.sender),
"ERC721: approve caller is not owner nor approved for all"