Vectorized / solady

Optimized Solidity snippets.
MIT License
2.6k stars 346 forks source link

⚡️ Optimize ERC6492 workflow #1163

Closed Vectorized closed 2 weeks ago

Vectorized commented 2 weeks ago

Description

⚡️

Checklist

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

Pull requests with an incomplete checklist will be thrown out.

github-actions[bot] commented 2 weeks ago

Gas Snapshot Comparison Report

Generated at commit : 9cb9b41639129a294e35a96fc7e1450ad1860d7c, Compared to commit : 4ad66591da7d7f9df7996411fa948efa60df066c

Contract Name Test Name Main Gas PR Gas Diff
SignatureCheckerLibTest testERC6492AllowSideEffectsOnEOA() 39942 39159 -783
testERC6492AllowSideEffectsPostDeploy() 492220 492501 281
testERC6492AllowSideEffectsPreDeploy() 504896 504285 -611
testERC6492OnEOA() 36371 35585 -786
testERC6492PostDeploy() 543683 543831 148
testERC6492PreDeploy() 1369834 1368956 -878
testERC6492WithoutRevertingVerifier() 74959 73558 -1401
testEmptyCalldataHelpers() 3917 3918 1
testSignatureCheckerOnEOAWithInvalidSignature() 21361 21362 1
testSignatureCheckerOnEOAWithInvalidSigner() 30861 30862 1
testSignatureCheckerOnEOAWithMatchingSignerAndSignature() 17759 17760 1
testSignatureCheckerOnEOAWithWrongSignedMessageHash() 21385 21386 1
testSignatureCheckerOnMaliciousWallet() 31952 31953 1
testSignatureCheckerOnWalletWithInvalidSignature() 78991 78992 1
testSignatureCheckerOnWalletWithInvalidSigner() 26094 26095 1
testSignatureCheckerOnWalletWithMatchingSignerAndSignature() 66072 66073 1
testSignatureCheckerOnWalletWithWrongSignedMessageHash() 66126 66127 1
test__codesize() 18619 18640 21