Skip to content

Commit 4dff743

Browse files
committed
chore(deps): bump revm-inspectors
1 parent 07b0ec3 commit 4dff743

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,6 @@ tower = "0.4"
250250
tower-http = "0.5"
251251
# soldeer
252252
soldeer = "0.2.15"
253+
254+
[patch.crates-io]
255+
revm-inspectors = { git = "https://github.com/h3lio5/evm-inspectors", branch = "optimize-memory-recording" }

crates/debugger/src/tui/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<'a> DebuggerContext<'a> {
129129

130130
fn active_buffer(&self) -> &[u8] {
131131
match self.active_buffer {
132-
BufferKind::Memory => self.current_step().memory.as_bytes(),
132+
BufferKind::Memory => self.current_step().memory.as_ref().unwrap().as_bytes(),
133133
BufferKind::Calldata => &self.debug_call().calldata,
134134
BufferKind::Returndata => &self.current_step().returndata,
135135
}

crates/debugger/src/tui/draw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ impl DebuggerContext<'_> {
502502
let call = self.debug_call();
503503
let step = self.current_step();
504504
let buf = match self.active_buffer {
505-
BufferKind::Memory => step.memory.as_ref(),
505+
BufferKind::Memory => step.memory.as_ref().unwrap().as_ref(),
506506
BufferKind::Calldata => call.calldata.as_ref(),
507507
BufferKind::Returndata => step.returndata.as_ref(),
508508
};

crates/evm/evm/src/inspectors/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ impl InspectorStack {
447447
.as_ref()
448448
.map(|cheatcodes| cheatcodes.labels.clone())
449449
.unwrap_or_default(),
450-
traces: tracer.map(|tracer| tracer.get_traces().clone()),
450+
traces: tracer.map(|tracer| tracer.into_traces()),
451451
coverage: coverage.map(|coverage| coverage.maps),
452452
cheatcodes,
453453
chisel_state: chisel_state.and_then(|state| state.state),

crates/evm/traces/src/decoder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ impl CallTraceDecoder {
575575

576576
let events_it = nodes
577577
.iter()
578-
.flat_map(|node| node.logs.iter().filter_map(|log| log.topics().first()))
578+
.flat_map(|node| node.logs.iter().filter_map(|log| log.raw_log.topics().first()))
579579
.unique();
580580
identifier.write().await.identify_events(events_it).await;
581581

crates/evm/traces/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub async fn render_trace_arena(
9595
for child in &node.ordering {
9696
match child {
9797
TraceMemberOrder::Log(index) => {
98-
let log = render_trace_log(&node.logs[*index], decoder).await?;
98+
let log = render_trace_log(&node.logs[*index].raw_log, decoder).await?;
9999

100100
// Prepend our tree structure symbols to each line of the displayed log
101101
log.lines().enumerate().try_for_each(|(i, line)| {

0 commit comments

Comments
 (0)