pub fn parse_l1_info(input: &[u8]) -> Result<L1BlockInfo, OpBlockExecutionError>
Available on crate feature
optimism
only.Expand description
Parses the input of the first transaction in the L2 block, into [L1BlockInfo
].
Returns an error if data is incorrect length.
Caution this expects that the input is the calldata of the [L1BlockInfo
] transaction (first
transaction) in the L2 block.
ยงPanics
If the input is shorter than 4 bytes.