Skip to content

Commit 7c0d0a0

Browse files
committed
fix(tests): EIP-4788: Fix max_fee_per_blob_gas in some tests
1 parent 5bc7ea3 commit 7c0d0a0

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

tests/cancun/eip4788_beacon_root/conftest.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,10 @@
77

88
import pytest
99

10-
from ethereum_test_tools import (
11-
AccessList,
12-
Account,
13-
Address,
14-
Alloc,
15-
Bytecode,
16-
Environment,
17-
Hash,
18-
Storage,
19-
Transaction,
20-
add_kzg_version,
21-
keccak256,
22-
)
23-
from ethereum_test_tools.vm.opcode import Opcodes as Op
10+
from ethereum_test_forks import Fork
11+
from ethereum_test_tools import AccessList, Account, Address, Alloc, Bytecode, Environment, Hash
12+
from ethereum_test_tools import Opcodes as Op
13+
from ethereum_test_tools import Storage, Transaction, add_kzg_version, keccak256
2414

2515
from .spec import Spec, SpecHelpers
2616

@@ -232,6 +222,7 @@ def tx_type() -> int:
232222
@pytest.fixture
233223
def tx(
234224
pre: Alloc,
225+
fork: Fork,
235226
tx_to_address: Address,
236227
tx_data: bytes,
237228
tx_type: int,
@@ -254,7 +245,7 @@ def tx(
254245
kwargs["access_list"] = access_list
255246

256247
if tx_type == 3:
257-
kwargs["max_fee_per_blob_gas"] = 1
248+
kwargs["max_fee_per_blob_gas"] = fork.min_base_fee_per_blob_gas()
258249
kwargs["blob_versioned_hashes"] = add_kzg_version([0], BLOB_COMMITMENT_VERSION_KZG)
259250

260251
if tx_type > 3:

0 commit comments

Comments
 (0)