Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant require in ERC721 #3434

Merged

Conversation

rotcivegaf
Copy link
Contributor

Remove redundant require in ERC721 contract, _isApprovedOrOwner function

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

@frangio
Copy link
Contributor

frangio commented May 27, 2022

@rotcivegaf @Amxx What do you think about changing all revert reasons that are "__ query for nonexistent token" to instead say "token id not minted"?

@frangio frangio changed the title Remove redundant require Remove redundant require in ERC721 May 27, 2022
@frangio
Copy link
Contributor

frangio commented May 27, 2022

Realizing we can treat my previous suggestion independently of this PR.

@frangio frangio merged commit 82a63f6 into OpenZeppelin:master May 27, 2022
@Amxx
Copy link
Collaborator

Amxx commented May 27, 2022

I don't have a strong opinion.

My only concern is that à token could be minted then burned ... and saying that it was not minted could be confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants