pub enum FromBlockError {
InvalidGenesisHash,
MissingL1InfoDeposit(B256),
UnexpectedTxType(u8),
TxEnvelopeDecodeError(Eip2718Error),
FirstTxNonDeposit(u8),
BlockInfoDecodeError(DecodeError),
OpPayload(OpPayloadError),
}Expand description
An error that can occur when converting an OP Block to 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 OP transaction.
FirstTxNonDeposit(u8)
The first payload transaction is not a deposit transaction.
BlockInfoDecodeError(DecodeError)
Failed to decode the L1BlockInfoTx from the deposit transaction.
OpPayload(OpPayloadError)
Failed to convert OpExecutionPayload to OpBlock.
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
impl Error for FromBlockError
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()
Source§impl From<DecodeError> for FromBlockError
impl From<DecodeError> for FromBlockError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Eip2718Error> for FromBlockError
impl From<Eip2718Error> for FromBlockError
Source§fn from(value: Eip2718Error) -> Self
fn from(value: Eip2718Error) -> Self
Converts to this type from the input type.
Source§impl From<OpPayloadError> for FromBlockError
impl From<OpPayloadError> for FromBlockError
Source§fn from(source: OpPayloadError) -> Self
fn from(source: OpPayloadError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FromBlockError
impl PartialEq for FromBlockError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more