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

Sadie/deserialized editions #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

sadief
Copy link
Contributor

@sadief sadief commented Oct 6, 2023

This PR makes the following adjustments to the NFL AllDay smart contract:

  • Adds a new optional field - deserialized to an Edition

  • Adds a new optional field - presetSerial to an Edition

  • Validates that if deserialized is true, presetSerial must be set

  • Adds the deserialized field to an EditionCreated event

  • If the moment is deserialized, the presetSerial number will be used as the serial for each Moment NFT that is minted

  • For @maddenwalker and @Deewai

@sadief sadief requested a review from a team as a code owner October 6, 2023 19:59
Comment on lines +441 to +442
pub let deserialized: Bool?
pub let presetSerial: UInt64?
Copy link
Collaborator

Choose a reason for hiding this comment

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

How are you planning on getting around the upgrade restrictions that you can't add new fields to existing types?

Copy link
Contributor

Choose a reason for hiding this comment

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

good point. @sadief i think what we can do is to modify the mint function signature to take in an optional Serial. If an edition is deserialized or not can be part of the edition offchain data

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.

None yet

3 participants