MCPcopy Create free account
hub / github.com/base/base / try_from

Method try_from

crates/execution/rpc/src/error.rs:111–121  ·  view source on GitHub ↗
(err: BaseTransactionError)

Source from the content-addressed store, hash-verified

109 type Error = InvalidTransaction;
110
111 fn try_from(err: BaseTransactionError) -> Result<Self, Self::Error> {
112 match err {
113 BaseTransactionError::DepositSystemTxPostRegolith => {
114 Ok(Self::DepositSystemTxPostRegolith)
115 }
116 BaseTransactionError::HaltedDepositPostRegolith => Ok(Self::HaltedDepositPostRegolith),
117 BaseTransactionError::MissingEnvelopedTx => Ok(Self::MissingEnvelopedTx),
118 BaseTransactionError::Eip8130(reason) => Ok(Self::Eip8130Rejected(reason)),
119 BaseTransactionError::Base(err) => Err(err),
120 }
121 }
122}
123
124/// Error type when interacting with the Sequencer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected