mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: no feature gated imports (#10440)
This commit is contained in:
@ -16,8 +16,6 @@ use reth_transaction_pool::error::{
|
|||||||
PoolTransactionError,
|
PoolTransactionError,
|
||||||
};
|
};
|
||||||
use revm::primitives::{EVMError, ExecutionResult, HaltReason, OutOfGasError};
|
use revm::primitives::{EVMError, ExecutionResult, HaltReason, OutOfGasError};
|
||||||
#[cfg(feature = "js-tracer")]
|
|
||||||
use revm_inspectors::tracing::js::JsInspectorError;
|
|
||||||
use revm_inspectors::tracing::MuxError;
|
use revm_inspectors::tracing::MuxError;
|
||||||
use tracing::error;
|
use tracing::error;
|
||||||
|
|
||||||
@ -194,10 +192,12 @@ impl From<EthApiError> for jsonrpsee_types::error::ErrorObject<'static> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "js-tracer")]
|
#[cfg(feature = "js-tracer")]
|
||||||
impl From<JsInspectorError> for EthApiError {
|
impl From<revm_inspectors::tracing::js::JsInspectorError> for EthApiError {
|
||||||
fn from(error: JsInspectorError) -> Self {
|
fn from(error: revm_inspectors::tracing::js::JsInspectorError) -> Self {
|
||||||
match error {
|
match error {
|
||||||
err @ JsInspectorError::JsError(_) => Self::InternalJsTracerError(err.to_string()),
|
err @ revm_inspectors::tracing::js::JsInspectorError::JsError(_) => {
|
||||||
|
Self::InternalJsTracerError(err.to_string())
|
||||||
|
}
|
||||||
err => Self::InvalidParams(err.to_string()),
|
err => Self::InvalidParams(err.to_string()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user