ethereum.forks.byzantium.exceptionsethereum.forks.constantinople.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):
19
        super().__init__(f"expected chain_id `{expected}` but got `{actual}`")
20
        self.expected = expected
21
        self.actual = actual