-
Notifications
You must be signed in to change notification settings - Fork 670
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
AA-466: Require SenderCreator to be called from EntryPoint & AA-470: Make SenderCreator public #514
Conversation
the change is SenderCreator is not enough and not clear by itself: need to add |
contracts/core/SenderCreator.sol
Outdated
@@ -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"); |
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.
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"
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.
Didn't want to reuse error codes, defined it s AA97
.
28745a7
to
1b8ff94
Compare
for some reason, it is doesn't work when called in "parallel"
5f4a937
to
aa5b03a
Compare
No description provided.