ethereum.forks.muir_glacier.exceptionsethereum.forks.berlin.exceptions

Exceptions specific to this fork.

WrongChainIdError

Chain identifier from a transaction does not match the executing chain. See EIP-155.

class WrongChainIdError:

__init__

def __init__(self, ​​expected: U64, ​​actual: U64):
21
        super().__init__(f"expected chain_id `{expected}` but got `{actual}`")
22
        self.expected = expected
23
        self.actual = actual

TransactionTypeError

Unknown EIP-2718 transaction type byte.

class TransactionTypeError:

transaction_type

The type byte of the transaction that caused the error.

33
    transaction_type: Final[int]

__init__

def __init__(self, ​​transaction_type: int):
39
        super().__init__(f"unknown transaction type `{transaction_type}`")
40
        self.transaction_type = transaction_type