From b7095ba49c675d60321139d5e0f1b0add6f7600b Mon Sep 17 00:00:00 2001 From: Haythem Sellami <17862704+haythemsellami@users.noreply.github.com> Date: Wed, 8 Apr 2026 10:25:11 +0700 Subject: [PATCH] fix(monad): keep blob header fields on MONAD_EIGHT --- .../execution_testing/forks/forks/forks.py | 21 ------------------- .../forks/tests/test_forks.py | 8 +++---- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/packages/testing/src/execution_testing/forks/forks/forks.py b/packages/testing/src/execution_testing/forks/forks/forks.py index 5023e488d1..c5004faf86 100644 --- a/packages/testing/src/execution_testing/forks/forks/forks.py +++ b/packages/testing/src/execution_testing/forks/forks/forks.py @@ -3272,27 +3272,6 @@ def blob_base_cost( class MONAD_EIGHT(Prague, solc_name="cancun"): # noqa: N801 """MONAD_EIGHT fork.""" - @classmethod - def header_excess_blob_gas_required( - cls, *, block_number: int = 0, timestamp: int = 0 - ) -> bool: - """ - MONAD_EIGHT does not include blob header fields. - - Monad keeps the point-evaluation precompile but does not support blob - transactions or blob gas accounting. - """ - del block_number, timestamp - return False - - @classmethod - def header_blob_gas_used_required( - cls, *, block_number: int = 0, timestamp: int = 0 - ) -> bool: - """MONAD_EIGHT does not include blob header fields.""" - del block_number, timestamp - return False - @classmethod def supports_blobs( cls, *, block_number: int = 0, timestamp: int = 0 diff --git a/packages/testing/src/execution_testing/forks/tests/test_forks.py b/packages/testing/src/execution_testing/forks/tests/test_forks.py index 40d355c916..68d2295297 100644 --- a/packages/testing/src/execution_testing/forks/tests/test_forks.py +++ b/packages/testing/src/execution_testing/forks/tests/test_forks.py @@ -396,11 +396,11 @@ def test_tx_types() -> None: # noqa: D103 Cancun.tx_types() == list(range(4)) # noqa: B015 -def test_monad_eight_disables_blob_support() -> None: - """MONAD_EIGHT keeps the KZG precompile but does not support blob txs.""" +def test_monad_eight_disables_blob_transactions_not_headers() -> None: + """MONAD_EIGHT keeps blob header fields but rejects blob tx behavior.""" assert MONAD_EIGHT.supports_blobs() is False - assert MONAD_EIGHT.header_excess_blob_gas_required() is False - assert MONAD_EIGHT.header_blob_gas_used_required() is False + assert MONAD_EIGHT.header_excess_blob_gas_required() is True + assert MONAD_EIGHT.header_blob_gas_used_required() is True assert MONAD_EIGHT.blob_schedule() is None assert MONAD_EIGHT.engine_get_blobs_version() is None assert MONAD_EIGHT.engine_new_payload_blob_hashes() is False