@@ -78,9 +78,9 @@ def test_bloatnet_balance_extcodesize(
78
78
+ gas_costs .G_WARM_ACCOUNT_ACCESS # Warm EXTCODESIZE (100)
79
79
+ gas_costs .G_BASE # POP code size (2)
80
80
+ gas_costs .G_BASE # DUP1 before BALANCE (3)
81
- + gas_costs .G_VERYLOW * 4 # PUSH1 operations (4 * 3)
81
+ + gas_costs .G_VERY_LOW * 4 # PUSH1 operations (4 * 3)
82
82
+ gas_costs .G_LOW # MLOAD for salt (3)
83
- + gas_costs .G_VERYLOW # ADD for increment (3)
83
+ + gas_costs .G_VERY_LOW # ADD for increment (3)
84
84
+ gas_costs .G_LOW # MSTORE salt back (3)
85
85
+ 10 # While loop overhead
86
86
)
@@ -224,9 +224,9 @@ def test_bloatnet_balance_extcodecopy(
224
224
+ gas_costs .G_WARM_ACCOUNT_ACCESS # Warm EXTCODECOPY base (100)
225
225
+ gas_costs .G_COPY * 1 # Copy cost for 1 byte (3)
226
226
+ gas_costs .G_BASE * 2 # DUP1 before BALANCE, DUP4 for address (6)
227
- + gas_costs .G_VERYLOW * 8 # PUSH operations (8 * 3 = 24)
227
+ + gas_costs .G_VERY_LOW * 8 # PUSH operations (8 * 3 = 24)
228
228
+ gas_costs .G_LOW * 2 # MLOAD for salt twice (6)
229
- + gas_costs .G_VERYLOW * 2 # ADD operations (6)
229
+ + gas_costs .G_VERY_LOW * 2 # ADD operations (6)
230
230
+ gas_costs .G_LOW # MSTORE salt back (3)
231
231
+ gas_costs .G_BASE # POP after EXTCODECOPY (2)
232
232
+ 10 # While loop overhead
0 commit comments