revm_wiring::result

Type Alias EVMErrorForChain

Source
pub type EVMErrorForChain<EvmWiringT> = EVMError<<<EvmWiringT as EvmWiring>::Database as Database>::Error, <<EvmWiringT as EvmWiring>::Transaction as Transaction>::TransactionError>;
Expand description

EVM error type for a specific chain.

Aliased Type§

enum EVMErrorForChain<EvmWiringT> {
    Transaction(<<EvmWiringT as EvmWiring>::Transaction as Transaction>::TransactionError),
    Header(InvalidHeader),
    Database(<<EvmWiringT as EvmWiring>::Database as Database>::Error),
    Custom(String),
    Precompile(String),
}

Variants§

§

Transaction(<<EvmWiringT as EvmWiring>::Transaction as Transaction>::TransactionError)

Transaction validation error.

§

Header(InvalidHeader)

Header validation error.

§

Database(<<EvmWiringT as EvmWiring>::Database as Database>::Error)

Database error.

§

Custom(String)

Custom error.

Useful for handler registers where custom logic would want to return their own custom error.

§

Precompile(String)

Precompile error.