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>
fn bytecode_by_hash( &self, code_hash: &FixedBytes<32>, ) -> Result<Option<Bytecode>, ProviderError>
Get account code by its hash