Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make fields pub #5545

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading