revm_optimism::wiring

Trait OptimismContextTrait

Source
pub trait OptimismContextTrait {
    // Required methods
    fn l1_block_info(&self) -> Option<&L1BlockInfo>;
    fn l1_block_info_mut(&mut self) -> &mut Option<L1BlockInfo>;
}

Required Methods§

Source

fn l1_block_info(&self) -> Option<&L1BlockInfo>

A reference to the cached L1 block info.

Source

fn l1_block_info_mut(&mut self) -> &mut Option<L1BlockInfo>

A mutable reference to the cached L1 block info.

Implementors§