From d4a28028d91453f2058fed19777539716e82b8f8 Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Sun, 16 Feb 2025 13:08:44 +0200 Subject: [PATCH] fix comment --- contracts/core/Eip7702Support.sol | 4 ++-- reports/gas-checker.txt | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/contracts/core/Eip7702Support.sol b/contracts/core/Eip7702Support.sol index 3f82ce84..ebf44660 100644 --- a/contracts/core/Eip7702Support.sol +++ b/contracts/core/Eip7702Support.sol @@ -7,10 +7,10 @@ import "../core/UserOperationLib.sol"; library Eip7702Support { - // EIP-7702 code prefix. Also, we use this prefix as a marker in the initCode. To specify this account is EIP-7702. + // EIP-7702 code prefix before delegate address. bytes3 internal constant EIP7702_PREFIX = 0xef0100; - // EIP-7702 initCode marker. To specify this account is EIP-7702. + // EIP-7702 initCode marker, to specify this account is EIP-7702. bytes2 internal constant INITCODE_EIP7702_MARKER = 0x7702; using UserOperationLib for PackedUserOperation; diff --git a/reports/gas-checker.txt b/reports/gas-checker.txt index 2e6c0695..fc9daa47 100644 --- a/reports/gas-checker.txt +++ b/reports/gas-checker.txt @@ -4,7 +4,7 @@ ╔══════════════════════════╤════════╗ ║ gas estimate "simple" │ 29259 ║ ╟──────────────────────────┼────────╢ -║ gas estimate "big tx 5k" │ 114690 ║ +║ gas estimate "big tx 5k" │ 114702 ║ ╚══════════════════════════╧════════╝ ╔════════════════════════════════╤═══════╤═══════════════╤════════════════╤═════════════════════╗ @@ -14,34 +14,34 @@ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ ║ simple │ 1 │ 77802 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple - diff from previous │ 2 │ │ 41950 │ 12691 ║ +║ simple - diff from previous │ 2 │ │ 41902 │ 12643 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple │ 10 │ 455500 │ │ ║ +║ simple │ 10 │ 455476 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple - diff from previous │ 11 │ │ 42023 │ 12764 ║ +║ simple - diff from previous │ 11 │ │ 41999 │ 12740 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster │ 1 │ 83617 │ │ ║ +║ simple paymaster │ 1 │ 83629 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster with diff │ 2 │ │ 40466 │ 11207 ║ +║ simple paymaster with diff │ 2 │ │ 40514 │ 11255 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster │ 10 │ 448206 │ │ ║ +║ simple paymaster │ 10 │ 448242 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ simple paymaster with diff │ 11 │ │ 40547 │ 11288 ║ +║ simple paymaster with diff │ 11 │ │ 40535 │ 11276 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx 5k │ 1 │ 167537 │ │ ║ +║ big tx 5k │ 1 │ 167561 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx - diff from previous │ 2 │ │ 131175 │ 16485 ║ +║ big tx - diff from previous │ 2 │ │ 131175 │ 16473 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx 5k │ 10 │ 1348138 │ │ ║ +║ big tx 5k │ 10 │ 1348174 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ big tx - diff from previous │ 11 │ │ 131176 │ 16486 ║ +║ big tx - diff from previous │ 11 │ │ 131188 │ 16486 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp │ 1 │ 84984 │ │ ║ +║ paymaster+postOp │ 1 │ 84936 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ ║ paymaster+postOp with diff │ 2 │ │ 41844 │ 12585 ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp │ 10 │ 461653 │ │ ║ +║ paymaster+postOp │ 10 │ 461641 │ │ ║ ╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢ -║ paymaster+postOp with diff │ 11 │ │ 41907 │ 12648 ║ +║ paymaster+postOp with diff │ 11 │ │ 41883 │ 12624 ║ ╚════════════════════════════════╧═══════╧═══════════════╧════════════════╧═════════════════════╝