diff --git a/client/evm-tracing/src/formatters/raw.rs b/client/evm-tracing/src/formatters/raw.rs index 610cacea..d3588e2f 100644 --- a/client/evm-tracing/src/formatters/raw.rs +++ b/client/evm-tracing/src/formatters/raw.rs @@ -28,7 +28,7 @@ impl super::ResponseFormatter for Formatter { None } else { Some(TransactionTrace::Raw { - step_logs: listener.step_logs, + struct_logs: listener.struct_logs, gas: listener.final_gas.into(), return_value: listener.return_value, }) diff --git a/client/evm-tracing/src/listeners/raw.rs b/client/evm-tracing/src/listeners/raw.rs index 8f19f121..041a8e75 100644 --- a/client/evm-tracing/src/listeners/raw.rs +++ b/client/evm-tracing/src/listeners/raw.rs @@ -32,7 +32,7 @@ pub struct Listener { new_context: bool, context_stack: Vec, - pub step_logs: Vec, + pub struct_logs: Vec, pub return_value: Vec, pub final_gas: u64, pub remaining_memory_usage: Option, @@ -77,7 +77,7 @@ impl Listener { disable_stack, remaining_memory_usage: Some(raw_max_memory_usage), - step_logs: vec![], + struct_logs: vec![], return_value: vec![], final_gas: 0, @@ -229,7 +229,7 @@ impl Listener { Some(context.storage_cache.clone()) }; - self.step_logs.push(RawStepLog { + self.struct_logs.push(RawStepLog { depth: depth.into(), gas: gas.into(), gas_cost: gas_cost.into(), diff --git a/client/evm-tracing/src/types/single.rs b/client/evm-tracing/src/types/single.rs index dbf5bf07..2e20e616 100644 --- a/client/evm-tracing/src/types/single.rs +++ b/client/evm-tracing/src/types/single.rs @@ -57,7 +57,7 @@ pub enum TransactionTrace { gas: U256, #[serde(with = "hex")] return_value: Vec, - step_logs: Vec, + struct_logs: Vec, }, /// Matches the formatter used by Blockscout. /// Is also used to built output of OpenEthereum's `trace_filter`.