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

AA-466: Require SenderCreator to be called from EntryPoint & AA-470: Make SenderCreator public #514

Conversation

forshtat
Copy link
Collaborator

No description provided.

@drortirosh
Copy link
Contributor

the change is SenderCreator is not enough and not clear by itself: need to add
require(msg.sender==entrypoint.senderCreator())
To SimpleAccountFactory (that's exactly why a sample working account implementation is part of this repo: To show how it is used with the framework)

@@ -15,6 +21,9 @@ contract SenderCreator {
function createSender(
bytes calldata initCode
) external returns (address sender) {
if (msg.sender != entryPoint) {
revert("AAxx should call from EntryPoint");
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not an expected error case to happen with entrypoint, only by "side-calling".
So it is an AA9x.
Can reuse "AA92 only from entrypoint"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Didn't want to reuse error codes, defined it s AA97.

@drortirosh drortirosh force-pushed the AA-466-AA-470-prevent-initcode-frontrun-and-make-sendercreator-public branch from 28745a7 to 1b8ff94 Compare December 22, 2024 17:34
for some reason, it is doesn't work when called in "parallel"
@drortirosh drortirosh force-pushed the AA-466-AA-470-prevent-initcode-frontrun-and-make-sendercreator-public branch from 5f4a937 to aa5b03a Compare December 22, 2024 18:32
@forshtat forshtat changed the title AA-466: Prevent InitCode frontrunning; AA-470: Make SenderCreator public AA-466: Require SenderCreator to be called from EntryPoint & AA-470: Make SenderCreator public Dec 23, 2024
@drortirosh drortirosh merged commit c6f34e4 into develop Dec 23, 2024
8 checks passed
@forshtat forshtat deleted the AA-466-AA-470-prevent-initcode-frontrun-and-make-sendercreator-public branch December 23, 2024 09:41
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