pub fn extract_l1_info(
body: &BlockBody,
) -> Result<L1BlockInfo, OptimismBlockExecutionError>
Available on crate feature
optimism
only.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.