Trait revm::db::components::block_hash::BlockHash
source · pub trait BlockHash {
type Error;
// Required method
fn block_hash(
&mut self,
number: Uint<256, 4>
) -> Result<FixedBytes<32>, Self::Error>;
}
Required Associated Types§
Required Methods§
sourcefn block_hash(
&mut self,
number: Uint<256, 4>
) -> Result<FixedBytes<32>, Self::Error>
fn block_hash( &mut self, number: Uint<256, 4> ) -> Result<FixedBytes<32>, Self::Error>
Get block hash by block number