Skip to content

Commit 8948a84

Browse files
committed
fix(tests): EIP-4844: Rollback EIP-7742 changes
1 parent c3c72d6 commit 8948a84

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

tests/cancun/eip4844_blobs/test_blob_txs.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import pytest
2222

23-
from ethereum_test_forks import Fork, Prague
23+
from ethereum_test_forks import Fork
2424
from ethereum_test_tools import (
2525
EOA,
2626
AccessList,
@@ -290,24 +290,14 @@ def tx_access_list() -> List[AccessList]:
290290

291291

292292
@pytest.fixture
293-
def tx_error(
294-
request: pytest.FixtureRequest,
295-
fork: Fork,
296-
) -> Optional[TransactionException]:
293+
def tx_error() -> Optional[TransactionException]:
297294
"""
298295
Default expected error produced by the block transactions (no error).
299296
300297
Can be overloaded on test cases where the transactions are expected
301298
to fail.
302299
"""
303-
if not hasattr(request, "param"):
304-
return None
305-
if fork >= Prague and request.param in [
306-
TransactionException.TYPE_3_TX_BLOB_COUNT_EXCEEDED,
307-
TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED,
308-
]:
309-
return None
310-
return request.param
300+
return None
311301

312302

313303
@pytest.fixture
@@ -746,10 +736,7 @@ def test_invalid_normal_gas(
746736
invalid_blob_combinations(),
747737
)
748738
@pytest.mark.parametrize(
749-
"tx_error",
750-
[TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED],
751-
ids=[""],
752-
indirect=True,
739+
"tx_error", [TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED], ids=[""]
753740
)
754741
@pytest.mark.valid_from("Cancun")
755742
def test_invalid_block_blob_count(
@@ -1020,7 +1007,6 @@ def test_insufficient_balance_blob_tx_combinations(
10201007
),
10211008
],
10221009
ids=["too_few_blobs", "too_many_blobs"],
1023-
indirect=["tx_error"],
10241010
)
10251011
@pytest.mark.valid_from("Cancun")
10261012
def test_invalid_tx_blob_count(

0 commit comments

Comments
 (0)