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

Stop cleaning up token specific data on ERC-721 burn #4561

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Sep 1, 2023

There is no strong reason to reset token URI or token-specific royalties when a token is burned. In some contracts like ERC721Wrapper the token owner can arbitrarily burn and re-mint a token, and in these cases resetting this data may not be the desired behavior.

Fixes LIB-1039

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2023

🦋 Changeset detected

Latest commit: 1896c9a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@frangio frangio changed the title Do not cleanup token specific data on burn Stop cleaning up token specific data on ERC-721 burn Sep 2, 2023
@frangio frangio merged commit 424149a into OpenZeppelin:audit/wip/2a-2b Sep 2, 2023
@Amxx Amxx deleted the feature/ERC721/extensions/dont-cleanup-on-burn branch April 3, 2024 23:34
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.

2 participants