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

Prevent Child IP from Linking to More Parent IPs More than Once #28

Merged

Conversation

kingster-will
Copy link

This PR ensures that a child IP cannot link to more parent IPs again. Added validation logic in the IP linking function to check if the child IP is already associated with a parent IP. If so, the operation is aborted, and an error message is returned.

Copy link

@jdubpark jdubpark left a comment

Choose a reason for hiding this comment

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

LGTM, cc @Spablob for changes to royalty system to reflect this new restriction

@jdubpark
Copy link

I'd suggest changing the title to "Prevent Child IP from Linking to Parent More than Once" since some IPs will register and then add parents in the future (first time). This PR just prevents adding parents more than once in the future.

@kingster-will kingster-will changed the title Prevent Child IP from Retroactively Linking to More Parent IPs Prevent Child IP from Linking to More Parent IPs More than Once Mar 27, 2024
@LeoHChen LeoHChen merged commit ee1030d into storyprotocol:main Mar 28, 2024
2 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.

4 participants