Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Refactor Initialization process of IPAccount registration #108

Merged
merged 4 commits into from
Feb 17, 2024

Conversation

kingster-will
Copy link
Contributor

This PR introduces an optimization to the IPAccountImpl contract by embedding the initialization of the AccessController directly within the constructor, eliminating the need for external calls to initialize() for each IPAccount registration. This change streamlines the process, enhancing efficiency and reducing gas costs associated with IPAccount setup.

All existing tests have been updated to reflect this change.

@kingster-will kingster-will self-assigned this Feb 17, 2024
@kingster-will kingster-will requested a review from a team February 17, 2024 06:30
Copy link
Member

@LeoHChen LeoHChen left a comment

Choose a reason for hiding this comment

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

LGTM in general, please just add some comments to the constructor.

@jdubpark
Copy link
Contributor

Would be nice to merge after #109 to keep the NatSpec and variable standards in check

@LeoHChen LeoHChen merged commit da87546 into storyprotocol:main Feb 17, 2024
1 check passed
kingster-will referenced this pull request in kingster-will/protocol-core-v1-dev Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants