Skip to content

Commit f6ccc00

Browse files
committed
fix(tests): use correct gas constant name in ordering tests
1 parent 2b21498 commit f6ccc00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_ordering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)