File tree Expand file tree Collapse file tree
tests/amsterdam/eip8037_state_creation_gas_cost_increase Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def _single_sstore_probe_gas(fork: Fork) -> int:
3939 The probe bytecode is Op.SSTORE(0, 1): two pushes + SSTORE.
4040 """
4141 gas_costs = fork .gas_costs ()
42- sstore_regular = gas_costs .GAS_COLD_STORAGE_WRITE
42+ sstore_regular = gas_costs .GAS_STORAGE_UPDATE
4343 sstore_state = fork .sstore_state_gas ()
4444 push_gas = 2 * gas_costs .GAS_VERY_LOW
4545 return push_gas + sstore_regular + sstore_state - 1
@@ -100,7 +100,7 @@ def test_sstore_oog_reservoir_inflation_detection(
100100
101101 # Compute probe gas: enough for 4 SSTOREs' regular gas + pushes,
102102 # but after 4th regular charge, gas_left < the state gas spill.
103- sstore_regular = gas_costs .GAS_COLD_STORAGE_WRITE
103+ sstore_regular = gas_costs .GAS_STORAGE_UPDATE
104104 sstore_state = fork .sstore_state_gas ()
105105 push_per_sstore = 2 * gas_costs .GAS_VERY_LOW
106106 create_state_gas = fork .create_state_gas (
You can’t perform that action at this time.
0 commit comments