reth_node_core::primitives::revm_primitives::precompile

Trait StatefulPrecompile

pub trait StatefulPrecompile: Sync + Send {
    // Required method
    fn call(
        &self,
        bytes: &Bytes,
        gas_limit: u64,
        env: &Env,
    ) -> Result<PrecompileOutput, PrecompileErrors>;
}
Expand description

Stateful precompile trait. It is used to create a arc precompile Precompile::Stateful.

Required Methods§

fn call( &self, bytes: &Bytes, gas_limit: u64, env: &Env, ) -> Result<PrecompileOutput, PrecompileErrors>

Implementations on Foreign Types§

§

impl StatefulPrecompile for FatalPrecompile

§

fn call( &self, _: &Bytes, _: u64, _: &Env, ) -> Result<PrecompileOutput, PrecompileErrors>

Implementors§