Skip to content

Commit 87d1df4

Browse files
haythemsellamiQEDK
authored andcommitted
fix(monad): keep blob header fields on MONAD_EIGHT
1 parent 5e31d7c commit 87d1df4

2 files changed

Lines changed: 4 additions & 25 deletions

File tree

packages/testing/src/execution_testing/forks/forks/forks.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3272,27 +3272,6 @@ def blob_base_cost(
32723272
class MONAD_EIGHT(Prague, solc_name="cancun"): # noqa: N801
32733273
"""MONAD_EIGHT fork."""
32743274

3275-
@classmethod
3276-
def header_excess_blob_gas_required(
3277-
cls, *, block_number: int = 0, timestamp: int = 0
3278-
) -> bool:
3279-
"""
3280-
MONAD_EIGHT does not include blob header fields.
3281-
3282-
Monad keeps the point-evaluation precompile but does not support blob
3283-
transactions or blob gas accounting.
3284-
"""
3285-
del block_number, timestamp
3286-
return False
3287-
3288-
@classmethod
3289-
def header_blob_gas_used_required(
3290-
cls, *, block_number: int = 0, timestamp: int = 0
3291-
) -> bool:
3292-
"""MONAD_EIGHT does not include blob header fields."""
3293-
del block_number, timestamp
3294-
return False
3295-
32963275
@classmethod
32973276
def supports_blobs(
32983277
cls, *, block_number: int = 0, timestamp: int = 0

packages/testing/src/execution_testing/forks/tests/test_forks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ def test_tx_types() -> None: # noqa: D103
396396
Cancun.tx_types() == list(range(4)) # noqa: B015
397397

398398

399-
def test_monad_eight_disables_blob_support() -> None:
400-
"""MONAD_EIGHT keeps the KZG precompile but does not support blob txs."""
399+
def test_monad_eight_disables_blob_transactions_not_headers() -> None:
400+
"""MONAD_EIGHT keeps blob header fields but rejects blob tx behavior."""
401401
assert MONAD_EIGHT.supports_blobs() is False
402-
assert MONAD_EIGHT.header_excess_blob_gas_required() is False
403-
assert MONAD_EIGHT.header_blob_gas_used_required() is False
402+
assert MONAD_EIGHT.header_excess_blob_gas_required() is True
403+
assert MONAD_EIGHT.header_blob_gas_used_required() is True
404404
assert MONAD_EIGHT.blob_schedule() is None
405405
assert MONAD_EIGHT.engine_get_blobs_version() is None
406406
assert MONAD_EIGHT.engine_new_payload_blob_hashes() is False

0 commit comments

Comments
 (0)