Fix remaining revert reasons.
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user