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

Method from

crates/execution/rpc/src/error.rs:54–63  ·  view source on GitHub ↗
(err: BaseEthApiError)

Source from the content-addressed store, hash-verified

52
53impl From<BaseEthApiError> for jsonrpsee_types::error::ErrorObject<'static> {
54 fn from(err: BaseEthApiError) -> Self {
55 match err {
56 BaseEthApiError::Eth(err) => err.into(),
57 BaseEthApiError::InvalidTransaction(err) => err.into(),
58 BaseEthApiError::Evm(_)
59 | BaseEthApiError::L1BlockFeeError
60 | BaseEthApiError::L1BlockGasError => internal_rpc_err(err.to_string()),
61 BaseEthApiError::Sequencer(err) => err.into(),
62 }
63 }
64}
65
66/// Base-specific invalid transaction errors

Callers

nothing calls this directly

Calls 3

rpc_errFunction · 0.85
codeMethod · 0.80
try_intoMethod · 0.80

Tested by

no test coverage detected