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

Fixes to set_and_verify_collection #43

Merged
merged 10 commits into from
Sep 28, 2023
Merged

Conversation

danenbm
Copy link
Contributor

@danenbm danenbm commented Sep 28, 2023

Notes

  • set_and_verify_collection fixes
    • Removed the ability for set_and_verify_collection to overwrite an existing verified collection. After this change, the existing verified collection will have to be unverified first by the appropriate authority. To accomplish this, switched the order of the check and the field update, so that the existing collection check happens before the new collection is put into the metadata.
    • Also moved the check and the update out of process_collection_verification_mpl_only, because 1) its not really a MPL collection-related check, and 2) then it can fix an existing behavior that has confused some people before. The behavior is that today, when you call mint_to_collection_v1, you must pass in metadata with collection verified set to false, and it is changed totrue during the instruction before it is hashed and the leaf is minted. After this change, you can send it in as either false or true and it will be set to true during mint_to_collection_v1.
  • Added deprecation message for instruction with previous spelling: SetDecompressableState.

Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danenbm danenbm changed the title Danenbm/set and verify col fixes Fixed to set_and_verify_collection Sep 28, 2023
@danenbm danenbm changed the title Fixed to set_and_verify_collection Fixes to set_and_verify_collection Sep 28, 2023
@danenbm danenbm merged commit fe5dae5 into main Sep 28, 2023
9 checks passed
@danenbm danenbm deleted the danenbm/set-and-verify-col-fixes branch September 28, 2023 22:21
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.

3 participants