Skip to content

Commit

Permalink
rename raw tracing step_logs tag to struct_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavcpawar committed Jul 20, 2023
1 parent 276817a commit 9d08047
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/evm-tracing/src/formatters/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down
6 changes: 3 additions & 3 deletions client/evm-tracing/src/listeners/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct Listener {
new_context: bool,
context_stack: Vec<Context>,

pub step_logs: Vec<RawStepLog>,
pub struct_logs: Vec<RawStepLog>,
pub return_value: Vec<u8>,
pub final_gas: u64,
pub remaining_memory_usage: Option<usize>,
Expand Down Expand Up @@ -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,

Expand Down Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion client/evm-tracing/src/types/single.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub enum TransactionTrace {
gas: U256,
#[serde(with = "hex")]
return_value: Vec<u8>,
step_logs: Vec<RawStepLog>,
struct_logs: Vec<RawStepLog>,
},
/// Matches the formatter used by Blockscout.
/// Is also used to built output of OpenEthereum's `trace_filter`.
Expand Down

0 comments on commit 9d08047

Please sign in to comment.