pub enum FromBlockError {
InvalidGenesisHash,
MissingL1InfoDeposit(B256),
UnexpectedTxType(u8),
TxEnvelopeDecodeError(Eip2718Error),
FirstTxNonDeposit(u8),
BlockInfoDecodeError(DecodeError),
}
Expand description
An error that can occur when converting an OpBlock to an L2BlockInfo.
Variants§
InvalidGenesisHash
The genesis block hash does not match the expected value.
MissingL1InfoDeposit(B256)
The L2 block is missing the L1 info deposit transaction.
UnexpectedTxType(u8)
The first payload transaction has an unexpected type.
TxEnvelopeDecodeError(Eip2718Error)
Failed to decode the first transaction into an OpTxEnvelope.
FirstTxNonDeposit(u8)
The first payload transaction is not a deposit transaction.
BlockInfoDecodeError(DecodeError)
Failed to decode the L1BlockInfoTx from the deposit transaction.
Trait Implementations§
Source§impl Debug for FromBlockError
impl Debug for FromBlockError
Source§impl Display for FromBlockError
impl Display for FromBlockError
Source§impl Error for FromBlockError
Available on crate feature std
only.
impl Error for FromBlockError
Available on crate feature
std
only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FromBlockError
impl RefUnwindSafe for FromBlockError
impl Send for FromBlockError
impl Sync for FromBlockError
impl Unpin for FromBlockError
impl UnwindSafe for FromBlockError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more