Trait BytecodeReader

pub trait BytecodeReader: Send + Sync {
    // Required method
    fn bytecode_by_hash(
        &self,
        code_hash: &FixedBytes<32>,
    ) -> Result<Option<Bytecode>, ProviderError>;
}
Expand description

Trait for reading bytecode associated with a given code hash.

Required Methods§

fn bytecode_by_hash( &self, code_hash: &FixedBytes<32>, ) -> Result<Option<Bytecode>, ProviderError>

Get account code by its hash

Implementations on Foreign Types§

§

impl<'a, T> BytecodeReader for &'a T
where T: 'a + BytecodeReader + ?Sized, &'a T: Send + Sync,

§

fn bytecode_by_hash( &self, code_hash: &FixedBytes<32>, ) -> Result<Option<Bytecode>, ProviderError>

§

impl<N> BytecodeReader for MemoryOverlayStateProviderRef<'_, N>
where N: NodePrimitives,

§

fn bytecode_by_hash( &self, code_hash: &FixedBytes<32>, ) -> Result<Option<Bytecode>, ProviderError>

§

impl<T> BytecodeReader for Box<T>
where T: BytecodeReader + ?Sized, Box<T>: Send + Sync,

§

fn bytecode_by_hash( &self, code_hash: &FixedBytes<32>, ) -> Result<Option<Bytecode>, ProviderError>

§

impl<T> BytecodeReader for Arc<T>
where T: BytecodeReader + ?Sized, Arc<T>: Send + Sync,

§

fn bytecode_by_hash( &self, code_hash: &FixedBytes<32>, ) -> Result<Option<Bytecode>, ProviderError>

Implementors§