Skip to content

Commit e95ec8d

Browse files
authored
chore(tests): set tx gas limit to 2^24 (ethereum#1882)
* chore(tests): set tx gas limit to 2^24. * chore(tests|forks): fix tx gas limit change.
1 parent 0be6d44 commit e95ec8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
REFERENCE_SPEC_GIT_PATH = "EIPS/eip-7825.md"
2929
REFERENCE_SPEC_VERSION = "47cbfed315988c0bd4d10002c110ae402504cd94"
3030

31-
TX_GAS_LIMIT = 30_000_000
31+
TX_GAS_LIMIT = 2**24 # 16,777,216
3232
BLOB_COMMITMENT_VERSION_KZG = 1
3333

3434

@@ -125,8 +125,8 @@ def test_transaction_gas_limit_cap_at_transition(
125125
"""
126126
Test transaction gas limit cap behavior at the Osaka transition.
127127
128-
Before timestamp 15000: No gas limit cap (transactions with gas > 30M are valid)
129-
At/after timestamp 15000: Gas limit cap of 30M is enforced
128+
Before timestamp 15000: No gas limit cap (transactions with gas > 2^24 are valid)
129+
At/after timestamp 15000: Gas limit cap of 2^24 is enforced
130130
"""
131131
sender = pre.fund_eoa()
132132
contract_address = pre.deploy_contract(
@@ -137,7 +137,7 @@ def test_transaction_gas_limit_cap_at_transition(
137137
if pre_cap is None:
138138
pre_cap = TX_GAS_LIMIT
139139

140-
# Transaction with gas limit above 30M
140+
# Transaction with gas limit above the cap before transition
141141
high_gas_tx = Transaction(
142142
ty=0, # Legacy transaction
143143
to=contract_address,

0 commit comments

Comments
 (0)