mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 16:18:08 -05:00
fix: don't recurse on op rpc err conversion (#10860)
This commit is contained in:
@@ -39,7 +39,8 @@ impl AsEthApiError for OpEthApiError {
|
||||
impl From<OpEthApiError> for jsonrpsee_types::error::ErrorObject<'static> {
|
||||
fn from(err: OpEthApiError) -> Self {
|
||||
match err {
|
||||
OpEthApiError::Eth(_) | OpEthApiError::InvalidTransaction(_) => err.into(),
|
||||
OpEthApiError::Eth(err) => err.into(),
|
||||
OpEthApiError::InvalidTransaction(err) => err.into(),
|
||||
OpEthApiError::Evm(_) |
|
||||
OpEthApiError::L1BlockFeeError |
|
||||
OpEthApiError::L1BlockGasError => internal_rpc_err(err.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user