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 _callInnerHandleOp #556

Open
wants to merge 2 commits into
base: refactor-post-execution
Choose a base branch
from

Conversation

drortirosh
Copy link
Contributor

No description provided.

@@ -418,7 +423,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuardT
unchecked {
uint256 executionGas = preGas - gasleft();
uint256 actualGas = _postExecution(mode, opInfo, context, executionGas);
return (mode == IPaymaster.PostOpMode.opSucceeded, actualGas);
return (mode != IPaymaster.PostOpMode.opSucceeded, actualGas);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why reversing the condition? That means that the assembly code that you extracted to an internal function not just moved, but also changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I wanted 0=success, 1=exec-revert, other=inner-call+reverted

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