(err: BaseEthApiError)
| 52 | |
| 53 | impl 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 |