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

Safe4337Mock: Remove signature check function inlining and call the function via call instead #450

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

mmv08
Copy link
Member

@mmv08 mmv08 commented Jun 28, 2024

In #446, I inlined the signature check function because we didn't want it to revert in unsuccessful cases. I inlined it because the try/catch statement didn't work for internal function calls. Little did I know that I could do this.f() and that would use the CALL opcode instead of JUMP, making the try/catch statement possible

More info: https://www.perplexity.ai/search/if-i-call-1VYIfl5eQEWvJ302U7wVOA#0

@mmv08 mmv08 requested a review from a team as a code owner June 28, 2024 09:44
@mmv08 mmv08 requested review from nlordell, akshay-ap and remedcu and removed request for a team June 28, 2024 09:44
@mmv08 mmv08 merged commit 8b85c79 into main Jun 28, 2024
12 checks passed
@mmv08 mmv08 deleted the 4337/remove-inlining-in-the-mock branch June 28, 2024 09:49
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 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.

2 participants