Trait revm_precompile::StatefulPrecompile

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

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

Required Methods§

source

fn call( &self, bytes: &Bytes, gas_price: u64, env: &Env ) -> Result<(u64, Bytes), PrecompileError>

Implementors§