Function extract_l1_info

Source
pub fn extract_l1_info<B>(
    body: &B,
) -> Result<L1BlockInfo, OpBlockExecutionError>
where B: BlockBody,
Expand description

Extracts the [L1BlockInfo] from the L2 block. The L1 info transaction is always the first transaction in the L2 block.

Returns an error if the L1 info transaction is not found, if the block is empty.