Skip to content
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
5 changes: 5 additions & 0 deletions crates/forge/src/cmd/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ pub struct TestArgs {
#[arg(long, help_heading = "Display options", requires = "summary")]
pub detailed: bool,

/// Disables the labels in the traces.
#[arg(long, help_heading = "Display options")]
pub disable_labels: bool,

#[command(flatten)]
filter: FilterArgs,

Expand Down Expand Up @@ -527,6 +531,7 @@ impl TestArgs {
// Build the trace decoder.
let mut builder = CallTraceDecoderBuilder::new()
.with_known_contracts(&known_contracts)
.with_label_disabled(self.disable_labels)
.with_verbosity(verbosity);
// Signatures are of no value for gas reports.
if !self.gas_report {
Expand Down
1 change: 1 addition & 0 deletions crates/script/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ impl ExecutedState {
.with_signature_identifier(SignaturesIdentifier::from_config(
&self.script_config.config,
)?)
.with_label_disabled(self.args.disable_labels)
.build();

let mut identifier = TraceIdentifiers::new().with_local(known_contracts).with_etherscan(
Expand Down
4 changes: 4 additions & 0 deletions crates/script/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ pub struct ScriptArgs {
#[arg(long)]
pub disable_code_size_limit: bool,

/// Disables the labels in the traces.
#[arg(long)]
pub disable_labels: bool,

/// The Etherscan (or equivalent) API key
#[arg(long, env = "ETHERSCAN_API_KEY", value_name = "KEY")]
pub etherscan_api_key: Option<String>,
Expand Down
Loading