Skip to content

Commit

Permalink
rename trace to trace_zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Sep 4, 2024
1 parent 69f6ec4 commit c0b92b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/cheatcodes/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub trait CheatcodesExecutor {
ecx: &mut EvmContext<DB>,
call_traces: Vec<Call>,
) {
self.get_inspector::<DB>(ccx_state).trace(ecx, call_traces);
self.get_inspector::<DB>(ccx_state).trace_zksync(ecx, call_traces);
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/evm/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub trait InspectorExt<DB: Database>: Inspector<DB> {
fn console_log(&mut self, _input: String) {}

// Appends provided zksync traces.
fn trace(&mut self, _context: &mut EvmContext<DB>, _call_traces: Vec<Call>) {}
fn trace_zksync(&mut self, _context: &mut EvmContext<DB>, _call_traces: Vec<Call>) {}
}

impl<DB: Database> InspectorExt<DB> for NoOpInspector {}
Expand Down
4 changes: 2 additions & 2 deletions crates/evm/evm/src/inspectors/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,8 @@ impl<'a, DB: DatabaseExt> InspectorExt<DB> for InspectorStackRefMut<'a> {
));
}

fn trace(&mut self, ecx: &mut EvmContext<DB>, call_traces: Vec<Call>) {
call_inspectors!([&mut self.tracer], |inspector| InspectorExt::<DB>::trace(
fn trace_zksync(&mut self, ecx: &mut EvmContext<DB>, call_traces: Vec<Call>) {
call_inspectors!([&mut self.tracer], |inspector| InspectorExt::<DB>::trace_zksync(
inspector,
ecx,
call_traces
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/evm/src/inspectors/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ where
}

impl<DB: Database> InspectorExt<DB> for TraceCollector {
fn trace(&mut self, context: &mut EvmContext<DB>, call_traces: Vec<Call>) {
fn trace_zksync(&mut self, context: &mut EvmContext<DB>, call_traces: Vec<Call>) {
fn trace_call_recursive<DB: Database>(
tracer: &mut TracingInspector,
context: &mut EvmContext<DB>,
Expand Down

0 comments on commit c0b92b0

Please sign in to comment.