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

Refactor ERC721 operator approvals to an internal function #2870

Conversation

Zer0dot
Copy link

@Zer0dot Zer0dot commented Sep 18, 2021

Fixes #2869

This pull request introduces a very small change to the base ERC721 contract: refactoring out setting _operatorApprovals into an internal virtual function.

This has a slight impact on gas, but comes with the benefit of allowing inheritors to set operator approvals via custom functions, allowing meta-transactions.

Tests run as normal, no tests were added.

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

@Amxx
Copy link
Collaborator

Amxx commented Sep 19, 2021

Duplicate of #2834

@Amxx Amxx marked this as a duplicate of #2834 Sep 19, 2021
@Amxx Amxx closed this Sep 19, 2021
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.

Refactor ERC721 _operatorApprovals to an Internal Virtual Function
2 participants