Make base URI final after revealing. #20
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hey guys. it seems like a lot of NFTs in the wild are copying the code from the tutorials and IMO it would be great to lead by a strong example!
currently, the NFT contract supports overriding of the base URI at any time. this makes NFTs untrustworthy bc you're at the mercy of the initial creator to not change any of the metadata. what do you think about only allowing metadata to be set once, exactly when the reveal happens? that way a) the base uri is hidden before reveal ( #19 ) and b) I'd take a similar 'only once' logic inside that method to make sure the baseURI can only be set once initially. cheers!
https://twitter.com/TheRaccoonSS/status/1434952984857911300?s=20
https://discord.com/channels/889036571385409556/889645060243726427/922275079017099294