Closed CaeraDenoir closed 1 year ago
Thanks! You'll have to use the older version of openzeppelin... or remove those. What do you think is better/easier?
Found a way using the functions on the newer version of openzeppelin. I think it's doing exactly the same checks as the old functions but i am not sure. For the _isApprovedOrOwner, the newer _isAuthorized should do the trick. _isAuthorized(_ownerOf(tokenId), msg.sender, tokenId) should be equal to _isApprovedOrOwner(msg.sender, tokenId).
For the _exists it is quite simple, the openzeppelin changelogs advise to just change it for _ownerOf(tokenId) != address(0)
Not sure about the _isApprovedOrOwner one.
Added this to chronological updates, thanks a lot @CaeraDenoir
As the title says, _isApprovedOrOwner and _exists will not be defined when importing the open zeppelin ERC721 contract.