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

Allow setting tokenURI for non-existent token #4559

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Sep 1, 2023

_setTokenURI currently reverts if the token ID hasn't been minted (has no owner). There is no strong reason to do this in this function, and we can see use cases where the token URI is set before minting.

Fixes LIB-1035 (N29)

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: ac1aad9

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 merged commit 00c5da2 into OpenZeppelin:audit/wip/2a-2b Sep 2, 2023
@Amxx Amxx deleted the feature/ERC721/extensions/set-tokenURI-nonexistent branch April 3, 2024 23:35
This was referenced Sep 10, 2024
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