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

Minor Max Invocation Patch #491

Merged
merged 9 commits into from
Feb 15, 2023
Merged

Minor Max Invocation Patch #491

merged 9 commits into from
Feb 15, 2023

Conversation

ryley-o
Copy link
Contributor

@ryley-o ryley-o commented Feb 13, 2023

Description of the change

Patches our minters with local max invocations to handle an edge case that should never be encountered on mainnet.

Specifically, the minters now revert a purchase when invocations on a project are >= max invocations on the minter.

Tests were updated and drove the development in this PR.

Also note that for convenience and consistency, a similar design choice as #478 was implemented. When a price/auction is configured, if a project's minter-local max invocations have never been populated, they are automatically synced to the values on the core contract. This removes an extra call that should be performed by most artists to ensure gas efficiency, but is often missed.

@ryley-o ryley-o requested a review from a team as a code owner February 13, 2023 20:06
@ryley-o ryley-o requested review from jakerockland and removed request for a team February 13, 2023 20:06
@ryley-o ryley-o self-assigned this Feb 13, 2023
@ryley-o ryley-o requested a review from lyaunzbe February 13, 2023 20:06
Base automatically changed from archive-deprecated-minter-test to main February 13, 2023 21:11
Copy link
Contributor

@jakerockland jakerockland left a comment

Choose a reason for hiding this comment

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

This LGTM ser – thank you very much!

@ryley-o ryley-o merged commit 3f74ff1 into main Feb 15, 2023
@ryley-o ryley-o deleted the minor-max-invocation-patch branch February 15, 2023 19:44
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