File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,10 @@ pub struct TestArgs {
186
186
#[ arg( long, help_heading = "Display options" , requires = "summary" ) ]
187
187
pub detailed : bool ,
188
188
189
+ /// Disables the labels in the traces.
190
+ #[ arg( long, help_heading = "Display options" ) ]
191
+ pub disable_labels : bool ,
192
+
189
193
#[ command( flatten) ]
190
194
filter : FilterArgs ,
191
195
@@ -527,6 +531,7 @@ impl TestArgs {
527
531
// Build the trace decoder.
528
532
let mut builder = CallTraceDecoderBuilder :: new ( )
529
533
. with_known_contracts ( & known_contracts)
534
+ . with_label_disabled ( self . disable_labels )
530
535
. with_verbosity ( verbosity) ;
531
536
// Signatures are of no value for gas reports.
532
537
if !self . gas_report {
Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ impl ExecutedState {
332
332
. with_signature_identifier ( SignaturesIdentifier :: from_config (
333
333
& self . script_config . config ,
334
334
) ?)
335
+ . with_label_disabled ( self . args . disable_labels )
335
336
. build ( ) ;
336
337
337
338
let mut identifier = TraceIdentifiers :: new ( ) . with_local ( known_contracts) . with_etherscan (
Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ pub struct ScriptArgs {
182
182
#[ arg( long) ]
183
183
pub disable_code_size_limit : bool ,
184
184
185
+ /// Disables the labels in the traces.
186
+ #[ arg( long) ]
187
+ pub disable_labels : bool ,
188
+
185
189
/// The Etherscan (or equivalent) API key
186
190
#[ arg( long, env = "ETHERSCAN_API_KEY" , value_name = "KEY" ) ]
187
191
pub etherscan_api_key : Option < String > ,
You can’t perform that action at this time.
0 commit comments