reth::primitives::revm_primitives

Type Alias PrecompileResult

pub type PrecompileResult = Result<PrecompileOutput, PrecompileErrors>;
Expand description

A precompile operation result.

Returns either Ok((gas_used, return_bytes)) or Err(error).

Aliased Type§

enum PrecompileResult {
    Ok(PrecompileOutput),
    Err(PrecompileErrors),
}

Variants§

§1.0.0

Ok(PrecompileOutput)

Contains the success value

§1.0.0

Err(PrecompileErrors)

Contains the error value

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes

Size for each variant:

  • Ok: 40 bytes
  • Err: 40 bytes