diff --git a/crates/revm/revm-inspectors/src/tracing/types.rs b/crates/revm/revm-inspectors/src/tracing/types.rs index 51fb1d21cb..83a4586a4f 100644 --- a/crates/revm/revm-inspectors/src/tracing/types.rs +++ b/crates/revm/revm-inspectors/src/tracing/types.rs @@ -438,7 +438,7 @@ impl CallTraceNode { gas: U256::from(self.trace.gas_limit), gas_used: U256::from(self.trace.gas_used), input: self.trace.data.clone().into(), - output: Some(self.trace.output.clone().into()), + output: (!self.trace.output.is_empty()).then(|| self.trace.output.clone().into()), error: None, revert_reason: None, calls: Default::default(), diff --git a/crates/rpc/rpc-types/src/eth/trace/geth/call.rs b/crates/rpc/rpc-types/src/eth/trace/geth/call.rs index d131f0f6a3..c0391b0c9a 100644 --- a/crates/rpc/rpc-types/src/eth/trace/geth/call.rs +++ b/crates/rpc/rpc-types/src/eth/trace/geth/call.rs @@ -1,6 +1,8 @@ use reth_primitives::{serde_helper::num::from_int_or_hex, Address, Bytes, H256, U256}; use serde::{Deserialize, Serialize}; +/// The response object for `debug_traceTransaction` with `"tracer": "callTracer"` +/// /// #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] pub struct CallFrame {