revm_precompile::interface

Type Alias PrecompileResult

Source
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