revm_primitives::precompile

Trait StatefulPrecompileMut

Source
pub trait StatefulPrecompileMut:
    DynClone
    + Send
    + Sync {
    // Required method
    fn call_mut(
        &mut self,
        bytes: &Bytes,
        gas_limit: u64,
        env: &Env,
    ) -> PrecompileResult;
}
Expand description

Mutable stateful precompile trait. It is used to create a boxed precompile in Precompile::StatefulMut.

Required Methods§

Source

fn call_mut( &mut self, bytes: &Bytes, gas_limit: u64, env: &Env, ) -> PrecompileResult

Implementors§