pub fn extract_l1_info_from_tx<T: Transaction>(
tx: &T,
) -> Result<L1BlockInfo, OpBlockExecutionError>
Expand description
Extracts the [L1BlockInfo
] from the L1 info transaction (first transaction) in the L2
block.
Returns an error if the calldata is shorter than 4 bytes.