Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ethereum_test_forks/forks/forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ def full_blob_tx_wrapper_version(cls, block_number=0, timestamp=0) -> int | None

@classmethod
def transaction_gas_limit_cap(cls, block_number: int = 0, timestamp: int = 0) -> int | None:
"""At Osaka, transaction gas limit is capped at 30 million."""
"""At Osaka, transaction gas limit is capped at 16 million (2**24)."""
return 16_777_216

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
from ethereum_test_tools.vm.opcode import Opcodes as Op

from ...byzantium.eip198_modexp_precompile.helpers import ModExpInput, ModExpOutput
from ..eip7825_transaction_gas_limit_cap.test_tx_gas_limit import TX_GAS_LIMIT
from ..eip7883_modexp_gas_increase.spec import Spec, Spec7883

REFERENCE_SPEC_GIT_PATH = "EIPS/eip-7823.md"
REFERENCE_SPEC_VERSION = "c8321494fdfbfda52ad46c3515a7ca5dc86b857c"

MAX_LENGTH_BYTES = 1024
TX_GAS_LIMIT = 2**24


@pytest.fixture
Expand Down
26 changes: 26 additions & 0 deletions tests/osaka/eip7825_transaction_gas_limit_cap/spec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""Defines EIP-7825 specification constants and functions."""

from dataclasses import dataclass


@dataclass(frozen=True)
class ReferenceSpec:
"""Defines the reference spec version and git path."""

git_path: str
version: str


# EIP-7825 reference specification
ref_spec_7825 = ReferenceSpec("EIPS/eip-7825.md", "47cbfed315988c0bd4d10002c110ae402504cd94")


@dataclass(frozen=True)
class Spec:
"""Constants and helpers for the EIP-7825 Transaction Gas Limit Cap tests."""

# Gas limit constants
tx_gas_limit_cap = 2**24 # 16,777,216

# Blob transaction constants
blob_commitment_version_kzg = 1
Loading
Loading