revm_optimism::evm

Type Alias OpError

Source
pub type OpError<DB> = EVMError<<DB as Database>::Error, InvalidTransaction>;
Expand description

Optimism Error

Aliased Type§

enum OpError<DB> {
    Transaction(InvalidTransaction),
    Header(InvalidHeader),
    Database(<DB as Database>::Error),
    Custom(String),
    Precompile(String),
}

Variants§

§

Transaction(InvalidTransaction)

Transaction validation error

§

Header(InvalidHeader)

Header validation error

§

Database(<DB 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