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): ensure empty license data arrays are rejected #146

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

sebsadface
Copy link
Member

Description

This PR introduces checks to ensure functions with multi-license attachment features properly handle empty license data arrays. The affected functions will now revert if the provided license data array is empty.
The updated functions include:

  • mintAndRegisterIpAndAttachLicenseAndAddToGroup
  • registerIpAndAttachLicenseAndAddToGroup
  • registerPILTermsAndAttach
  • mintAndRegisterIpAndAttachPILTerms
  • registerIpAndAttachPILTerms

Test Plan

New test cases have been added to confirm that each of the affected functions reverts when an empty license data array is passed.

@sebsadface sebsadface marked this pull request as ready for review December 16, 2024 22:47
@sebsadface sebsadface merged commit 0a305a7 into storyprotocol:main Dec 17, 2024
3 checks passed
@sebsadface sebsadface deleted the fix-zero-license-data branch January 9, 2025 19:42
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