extract_l1_info_from_tx

Function extract_l1_info_from_tx 

pub fn extract_l1_info_from_tx<T>(
    tx: &T,
) -> Result<L1BlockInfo, OpBlockExecutionError>
where T: Transaction,
Available on crate features node-api and node only.
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.