fix: register trace correctly

This commit is contained in:
Matthias Seitz
2023-05-12 14:57:32 +02:00
parent 53fadfce0a
commit 4070bd1731

View File

@@ -686,12 +686,13 @@ where
/// Register Trace Namespace
pub fn register_trace(&mut self) -> &mut Self {
let eth_api = self.eth_api();
let eth = self.eth_handlers();
self.modules.insert(
RethRpcModule::Trace,
DebugApi::new(
TraceApi::new(
self.client.clone(),
eth_api,
eth.api.clone(),
eth.cache,
Box::new(self.executor.clone()),
self.tracing_call_guard.clone(),
)