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

Bug: Updating the metadata can lead to creator-less cNFTs #99

Closed
c4b4d4 opened this issue Jun 18, 2024 · 1 comment
Closed

Bug: Updating the metadata can lead to creator-less cNFTs #99

c4b4d4 opened this issue Jun 18, 2024 · 1 comment

Comments

@c4b4d4
Copy link

c4b4d4 commented Jun 18, 2024

When updating the metadata of a cNFT if none of the creators are verified you can pass an empty Vec and the transaction can go thru. Unless I’m missing something.

There is no check for empty creators Vec when updating the metadata.

let no_new_creators_verified = all_verified_creators_in_a_are_in_b(

@c4b4d4 c4b4d4 closed this as completed Jun 18, 2024
@danenbm
Copy link
Contributor

danenbm commented Jun 18, 2024

I think you saw the responses in the dev TG, but just for reference wanted to post it here that it was intentional to allow creatorless cNFTs. I believe it was considered to broaden the use cases of bubblegum to things like gaming where creators/royalties might not be applicable. As such it is checked in assert_metadata_is_mpl_compatible() and if there are creators, the number of creators must be enforced, no duplicates, and total percentage is 100%. Empty creator array for Bubblegum is handled in DAS, and it is inconsistent with TM.

I also added some explicit tests for the empty creator array as that is important logic you highlighted: #100

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

No branches or pull requests

2 participants