Skip to content

Commit

Permalink
chore: make fields pub
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Nov 23, 2023
1 parent 7c148b4 commit 117c48a
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 164 deletions.
10 changes: 10 additions & 0 deletions crates/revm/revm-inspectors/src/tracing/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ impl CallTraceArena {
}
}
}

/// Returns the nodes in the arena
pub fn nodes(&self) -> &[CallTraceNode] {
&self.arena
}

/// Consumes the arena and returns the nodes
pub fn into_nodes(self) -> Vec<CallTraceNode> {
self.arena
}
}

/// How to push a trace into the arena
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/revm-inspectors/src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod builder;
mod config;
mod fourbyte;
mod opcount;
mod types;
pub mod types;
mod utils;
use crate::tracing::{
arena::PushTraceKind,
Expand Down
Loading

0 comments on commit 117c48a

Please sign in to comment.