pub trait BytecodeReader: Send + Sync {
// Required method
fn bytecode_by_hash(
&self,
code_hash: &B256,
) -> ProviderResult<Option<Bytecode>>;
}
Expand description
Trait for reading bytecode associated with a given code hash.
Required Methods§
Sourcefn bytecode_by_hash(&self, code_hash: &B256) -> ProviderResult<Option<Bytecode>>
fn bytecode_by_hash(&self, code_hash: &B256) -> ProviderResult<Option<Bytecode>>
Get account code by its hash