Skip to content

Commit f4da9d3

Browse files
committed
fix(tests): Add block exceltion to test_blob_type_tx_pre_fork
1 parent eb5bcba commit f4da9d3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: tests/cancun/eip4844_blobs/test_blob_txs.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -1347,15 +1347,23 @@ def test_blob_tx_attribute_gasprice_opcode(
13471347
"parent_excess_blobs",
13481348
"tx_max_fee_per_blob_gas",
13491349
"tx_error",
1350+
"block_error",
13501351
],
13511352
[
13521353
(
13531354
[0],
13541355
None,
13551356
1,
13561357
[TransactionException.TYPE_3_TX_PRE_FORK, TransactionException.TYPE_3_TX_ZERO_BLOBS],
1358+
[TransactionException.TYPE_3_TX_PRE_FORK, TransactionException.TYPE_3_TX_ZERO_BLOBS],
1359+
),
1360+
(
1361+
[1],
1362+
None,
1363+
1,
1364+
TransactionException.TYPE_3_TX_PRE_FORK,
1365+
[TransactionException.TYPE_3_TX_PRE_FORK, BlockException.INVALID_VERSIONED_HASHES],
13571366
),
1358-
([1], None, 1, TransactionException.TYPE_3_TX_PRE_FORK),
13591367
],
13601368
ids=["no_blob_tx", "one_blob_tx"],
13611369
)
@@ -1365,6 +1373,7 @@ def test_blob_type_tx_pre_fork(
13651373
state_test: StateTestFiller,
13661374
pre: Alloc,
13671375
txs: List[Transaction],
1376+
block_error: Optional[TransactionException | BlockException],
13681377
):
13691378
"""
13701379
Reject blocks with blob type transactions before Cancun fork.
@@ -1378,4 +1387,5 @@ def test_blob_type_tx_pre_fork(
13781387
post={},
13791388
tx=txs[0],
13801389
env=Environment(), # `env` fixture has blob fields
1390+
block_exception=block_error,
13811391
)

0 commit comments

Comments
 (0)