Skip to content

Commit 75f51bc

Browse files
authored
chore(tests): exception hotfix (#2011)
1 parent 7143c0b commit 75f51bc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/osaka/eip7594_peerdas/test_max_blob_per_tx.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,15 @@ def test_max_blobs_per_tx_fork_transition(
161161
else TransactionException.TYPE_3_TX_BLOB_COUNT_EXCEEDED
162162
)
163163
pre_fork_block = Block(
164-
txs=[tx],
164+
txs=[
165+
tx
166+
if blob_count < fork.max_blobs_per_block(timestamp=FORK_TIMESTAMP - 1)
167+
else tx.with_error(expected_exception)
168+
],
165169
timestamp=FORK_TIMESTAMP - 1,
170+
exception=None
171+
if blob_count < fork.max_blobs_per_block(timestamp=FORK_TIMESTAMP - 1)
172+
else [expected_exception],
166173
)
167174
fork_block = Block(
168175
txs=[tx.with_nonce(1).with_error(expected_exception)],

0 commit comments

Comments
 (0)