referrerpolicy=no-referrer-when-downgrade
pallet_revive_eth_rpc

Trait BlockInfo

Source
pub trait BlockInfo {
    // Required methods
    fn hash(&self) -> H256;
    fn number(&self) -> SubstrateBlockNumber;
}
Expand description

Provides information about a block, This is an abstratction on top of SubstrateBlock that can’t be mocked in tests. Can be removed once https://github.com/paritytech/subxt/issues/1883 is fixed.

Required Methods§

Source

fn hash(&self) -> H256

Returns the block hash.

Source

fn number(&self) -> SubstrateBlockNumber

Returns the block number.

Implementors§