ethereum.forks.bogota.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​):
24
        super().__init__(f"expected chain_id `{expected}` but got `{actual}`")
25
        self.expected = expected
26
        self.actual = actual

TransactionTypeError

Unknown EIP-2718 transaction type byte.

class TransactionTypeError:

transaction_type

The type byte of the transaction that caused the error.

36
    transaction_type: Final[int]

__init__

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

TransactionTypeContractCreationError

Contract creation is not allowed for a transaction type.

class TransactionTypeContractCreationError:

transaction

The transaction that caused the error.

51
    transaction: "Transaction"

__init__

def __init__(​self, ​​transaction: "Transaction"​):
57
        super().__init__(
58
            f"transaction type `{type(transaction).__name__}` not allowed to "
59
            "create contracts"
60
        )
61
        self.transaction = transaction

BlobGasLimitExceededError

The blob gas limit for the transaction exceeds the maximum allowed.

class BlobGasLimitExceededError:

InsufficientMaxFeeError

The maximum fee of a frame transaction does not cover its worst-case base fee charge at the including block's base fees.

class InsufficientMaxFeeError:

InsufficientMaxFeePerBlobGasError

The maximum fee per blob gas is insufficient for the transaction.

class InsufficientMaxFeePerBlobGasError:

InsufficientMaxFeePerGasError

The maximum fee per gas is insufficient for the transaction.

class InsufficientMaxFeePerGasError:

transaction_max_fee_per_gas

The maximum fee per gas specified in the transaction.

88
    transaction_max_fee_per_gas: Final[Uint]

block_base_fee_per_gas

The base fee per gas of the block in which the transaction is included.

93
    block_base_fee_per_gas: Final[Uint]

__init__

def __init__(​self, ​​transaction_max_fee_per_gas: Uint, ​​block_base_fee_per_gas: Uint​):
101
        super().__init__(
102
            f"Insufficient max fee per gas "
103
            f"({transaction_max_fee_per_gas} < {block_base_fee_per_gas})"
104
        )
105
        self.transaction_max_fee_per_gas = transaction_max_fee_per_gas
106
        self.block_base_fee_per_gas = block_base_fee_per_gas

InvalidBlobVersionedHashError

The versioned hash of the blob is invalid.

class InvalidBlobVersionedHashError:

NoBlobDataError

The transaction does not contain any blob data.

class NoBlobDataError:

BlobCountExceededError

The transaction has more blobs than the limit.

class BlobCountExceededError:

PriorityFeeGreaterThanMaxFeeError

The priority fee is greater than the maximum fee per gas.

class PriorityFeeGreaterThanMaxFeeError:

FeeOverflowError

A fee field of the transaction exceeds the largest representable 256-bit value.

class FeeOverflowError:

EmptyAuthorizationListError

The authorization list in the transaction is empty.

class EmptyAuthorizationListError:

InitCodeTooLargeError

The init code of the transaction is too large.

class InitCodeTooLargeError:

TransactionGasLimitExceededError

The transaction has specified a gas limit that is greater than the allowed maximum.

Note that this is not the exception thrown when bytecode execution runs out of gas.

class TransactionGasLimitExceededError:

FrameCountError

The transaction has either too many or too few Frames to be valid.

class FrameCountError:

maximum

Any more than this number of Frames invalidates a transaction.

169
    maximum: Final[Uint]

actual

Number of Frames actually included in the transaction.

176
    actual: Final[Uint]

__init__

def __init__(​self, ​​actual: Uint, ​​maximum: Uint​) -> None:
184
        message = (
185
            f"transaction must contain between 1 and {maximum} frames, "
186
            f"inclusive (got {actual})"
187
        )
188
189
        super().__init__(message)
190
        self.maximum = maximum
191
        self.actual = actual

InvalidFrameError

A Frame did not pass validation.

class InvalidFrameError:

FrameTransactionExecutionError

A frame transaction violated a validity rule that is only checkable during execution: a VERIFY frame reverted or halted exceptionally, a SENDER frame ran before execution approval, or no frame approved gas payment.

class FrameTransactionExecutionError:

BlockAccessListGasLimitExceededError

The block access list exceeds the gas limit constraint.

Introduced in EIP-7928.

class BlockAccessListGasLimitExceededError: