BytecodeReader

Trait BytecodeReader 

Source
pub trait BytecodeReader {
    // Required method
    fn bytecode_by_hash(
        &self,
        code_hash: &FixedBytes<32>,
    ) -> Result<Option<Bytecode>, ProviderError>;
}
Available on crate feature storage-api only.
Expand description

Trait for reading bytecode associated with a given code hash.

Required Methods§

Source

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

Get account code by its hash

Implementations on Foreign Types§

Source§

impl<'a, N> BytecodeReader for MemoryOverlayStateProvider<N>
where N: NodePrimitives,

Source§

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

Source§

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

Source§

impl<S> BytecodeReader for InstrumentedStateProvider<S>
where S: BytecodeReader,

Source§

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

Implementors§