Skip to content

Commit 578c99d

Browse files
committed
fix(tests): Make test run with both tx types
1 parent 72d1337 commit 578c99d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import pytest
99

10-
from ethereum_test_forks import Fork, London
10+
from ethereum_test_forks import Fork
1111
from ethereum_test_tools import (
1212
AccessList,
1313
Address,
@@ -135,8 +135,10 @@
135135
pytest.param(True, marks=pytest.mark.exception_test),
136136
],
137137
)
138+
@pytest.mark.with_all_tx_types(selector=lambda tx_type: tx_type in [1, 2])
138139
def test_tx_intrinsic_gas(
139140
state_test: StateTestFiller,
141+
tx_type: int,
140142
pre: Alloc,
141143
fork: Fork,
142144
data: Bytes,
@@ -148,10 +150,7 @@ def test_tx_intrinsic_gas(
148150
intrinsic_gas_cost = intrinsic_gas_cost_calculator(calldata=data, access_list=access_list)
149151

150152
tx = Transaction(
151-
ty=0x1 if fork < London else 0x2,
152-
max_fee_per_gas=None if fork < London else 1000,
153-
max_priority_fee_per_gas=None if fork < London else 200,
154-
chain_id=0x01,
153+
ty=tx_type,
155154
sender=pre.fund_eoa(),
156155
to=pre.deploy_contract(code=Op.SSTORE(0, Op.ADD(1, 1))),
157156
data=data,

0 commit comments

Comments
 (0)