pub trait BlockHashMapping {
// Required method
fn block_hash(number: u32) -> H256;
}
Expand description
A trait for getting a block hash by number.
Required Methods§
fn block_hash(number: u32) -> H256
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.