Skip to content

Commit

Permalink
fix tox
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Oct 15, 2024
1 parent cb477ee commit 5d8d350
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/ethereum_clis/clis/execution_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ def _mapping_data(self):
TransactionException.INITCODE_SIZE_EXCEEDED,
"ansaction: ",
),
ExceptionMessage(
TransactionException.PRIORITY_GREATER_THAN_MAX_FEE_PER_GAS,
"nsaction: ",
),
# TODO EVMONE needs to differentiate when the section is missing in the header or body
ExceptionMessage(EOFException.MISSING_STOP_OPCODE, "err: no_terminating_instruction"),
ExceptionMessage(EOFException.MISSING_CODE_HEADER, "err: code_section_missing"),
Expand Down
5 changes: 2 additions & 3 deletions src/ethereum_test_specs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@
from itertools import count
from os import path
from pathlib import Path
from typing import Callable, ClassVar, Dict, Generator, Iterator, List, Optional
from typing import Callable, ClassVar, Generator, Iterator, List, Optional

import pytest
from pydantic import BaseModel, Field

from ethereum_clis import Result, TransitionTool
from ethereum_test_base_types import to_hex
from ethereum_test_exceptions import ExceptionMapper, TransactionException
from ethereum_test_fixtures import BaseFixture, FixtureFormat
from ethereum_test_forks import Fork
from ethereum_test_types import Environment, Transaction, Withdrawal
from ethereum_test_types import Environment, Withdrawal


class HashMismatchException(Exception):
Expand Down
4 changes: 3 additions & 1 deletion tests/prague/eip7702_set_code_tx/test_set_code_txs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,9 @@ def test_set_code_invalid_authorization_tuple(
nonce=(
1
if invalidity_reason == InvalidityReason.NONCE
else [0, 1] if invalidity_reason == InvalidityReason.MULTIPLE_NONCE else 0
else [0, 1]
if invalidity_reason == InvalidityReason.MULTIPLE_NONCE
else 0
),
chain_id=2 if invalidity_reason == InvalidityReason.CHAIN_ID else 0,
signer=auth_signer,
Expand Down

0 comments on commit 5d8d350

Please sign in to comment.