-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add eip7702 support #227
Conversation
feat: add eip7702 support
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you for putting this together!
Mostly questions and small suggestions.
) external { | ||
) | ||
external | ||
payable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the use case for it to be payable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's required when calling createAccount with msg.value using the new factory/proxy pattern (tests revert if it's not payable)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
PR-Codex overview
This PR introduces new contracts and updates existing ones to enhance the Nexus framework for modular smart accounts, focusing on proxy deployment and initialization improvements, as well as validators and hooks management.
Detailed summary
MockTarget
contract for testing purposes.NexusProxy
for ERC1967 upgrade pattern.Initializable
library to manage initialization flags.K1ValidatorFactory
andNexusAccountFactory
to useProxyLib
for proxy deployment.