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(grouping): deploy royalty vault for member IPs without existing vaults #105

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

sebsadface
Copy link
Member

Background

Currently, the core protocol lacks a function to manually trigger royalty vault deployment. This leads to an issue in the collectRoyaltiesAndClaimReward function, where a member IP may not have a royalty vault if no license token has been minted or no derivative has been registered.

Description

This PR addresses the issue by adding a workaround in the collectRoyaltiesAndClaimReward function. It now checks whether the given member IP already has a royalty vault deployed, and if not, it mints a license token for that IP to trigger the royalty vault deployment.

Key Changes

  • Added logic to check for and deploy royalty vaults for member IPs as needed
  • Renamed GroupId to GroupIpId in collectRoyaltiesAndClaimReward
  • Updated tests to reflect these changes

@sebsadface sebsadface merged commit 1474b40 into storyprotocol:main Oct 22, 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.

2 participants