Skip to content

Commit ae2e034

Browse files
committed
chore: fix tox.
1 parent 38d7612 commit ae2e034

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/osaka/eip7934_block_rlp_limit/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def post() -> Alloc:
1919

2020
@pytest.fixture
2121
def env() -> Environment:
22+
"""Environment fixture with a specified gas limit."""
2223
return Environment(gas_limit=100_000_000)
2324

2425

tests/osaka/eip7934_block_rlp_limit/test_max_block_rlp_size.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def block_errors() -> List[BlockException]:
5757

5858
def create_test_header(gas_used: int) -> FixtureHeader:
5959
"""Create a standard test header for RLP size calculations."""
60-
return FixtureHeader(
60+
return FixtureHeader( # type: ignore
6161
difficulty="0x0",
6262
number="0x1",
6363
gas_limit=hex(BLOCK_GAS_LIMIT),
@@ -85,11 +85,9 @@ def create_test_header(gas_used: int) -> FixtureHeader:
8585
def get_block_rlp_size(transactions: List[Transaction], gas_used: int) -> int:
8686
"""Calculate the RLP size of a block with given transactions."""
8787
header = create_test_header(gas_used)
88-
8988
total_gas = sum((tx.gas_limit or 21000) for tx in transactions)
9089
header.gas_used = ZeroPaddedHexNumber(total_gas)
91-
92-
test_block = FixtureBlockBase(blockHeader=header, withdrawals=[])
90+
test_block = FixtureBlockBase(blockHeader=header, withdrawals=[]) # type: ignore
9391
return len(test_block.with_rlp(txs=transactions).rlp)
9492

9593

0 commit comments

Comments
 (0)