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

Add Existence Check for licenseTermsId when verifyMintLicenseToken in PILicenseTemplate #153

Merged

Conversation

kingster-will
Copy link

Description

This PR includes changes that enhance the PILicenseTemplate contract. The contract now checks whether the input licenseTermsId exists when performing verification during the minting of a license token.

Changes:

Modified the PILicenseTemplate contract to include a check for the existence of licenseTermsId. If the licenseTermsId does not exist, the contract will revert and prevent the minting of the license token.

Test Plan

Updated the unit tests to cover the code change in this PR.

Copy link

@Ramarti Ramarti left a comment

Choose a reason for hiding this comment

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

LGTM + Approved by auditors

@Ramarti Ramarti merged commit a003701 into storyprotocol:main Jun 26, 2024
3 checks passed
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