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

Refactor registerIpAccount to be Internal function #155

Conversation

kingster-will
Copy link

Description

This PR includes changes that refactor the registerIpAccount function in the IPAccountRegistry contract. The function has been made internal to ensure there is only one unique way to register an IPAccount, which is through the IPAssetRegistry. This change is aimed at making the IP Asset registration path more consistent.

Changes:

  1. Modified the registerIpAccount function in the IPAccountRegistry contract to be internal. This change ensures that IP Account registration can only be done through the IPAssetRegistry, providing a single, consistent path for IP registration.

  2. Updated the unit tests to reflect these changes.

  3. Updated the NatSpec documentation to reflect these changes.

Test Plan

Updated the unit test case cover the code changes.

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 3007656 into storyprotocol:main Jun 27, 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