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

♻️ Minimal ERC6492 non-reverting verifier #1221

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

Vectorized
Copy link
Owner

Description

Remove the footgun.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

Copy link

github-actions bot commented Dec 9, 2024

Gas Snapshot Comparison Report

Generated at commit : cca555c, Compared to commit : 513f581

Contract Name Test Name Main Gas PR Gas Diff
SignatureCheckerLibTest testERC6492AllowSideEffectsPostDeploy() 491866 541537 49671
testERC6492AllowSideEffectsPreDeploy() 503650 554586 50936
test__codesize() 18597 18875 278

0, // Send zero ETH.
m, // Start of memory.
add(returndatasize(), 0x40), // Length of calldata in memory.
staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome trick.

@Vectorized Vectorized merged commit 4fb8763 into main Dec 16, 2024
11 checks passed
@Vectorized Vectorized deleted the sig-checker-6492-minimal-deployer branch December 16, 2024 23:13
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