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

fix(licensing-hook): prevent setting license token limit below current total supply #100

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

sebsadface
Copy link
Member

Description

This PR adds checks to the setTotalLicenseTokenLimit function that revert if the new license token limit is lower than the current total supply. Additionally, it introduces new custom errors to replace the existing require statements.

Test Plan

Added a new test case to verify that the setTotalLicenseTokenLimit function correctly reverts when the new limit is lower than the current total supply. All existing tests pass locally.

@kingster-will kingster-will merged commit 5ba250a into storyprotocol:main Oct 18, 2024
3 checks passed
@sebsadface sebsadface deleted the clear branch December 4, 2024 05:39
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