Skip to content

Commit

Permalink
fix: ci (#7363)
Browse files Browse the repository at this point in the history
* fix: ci

* fmt
  • Loading branch information
klkvr authored Mar 11, 2024
1 parent 15c8d11 commit e74d632
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/forge/bin/cmd/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,12 @@ impl TestArgs {
// Set up trace identifiers.
let known_contracts = runner.known_contracts.clone();
let remote_chain_id = runner.evm_opts.get_remote_chain_id();
let mut identifier = TraceIdentifiers::new()
.with_local(&known_contracts)
.with_etherscan(&config, remote_chain_id)?;
let mut identifier = TraceIdentifiers::new().with_local(&known_contracts);

// Avoid using etherscan for gas report as we decode more traces and this will be expensive.
if !self.gas_report {
identifier = identifier.with_etherscan(&config, remote_chain_id)?;
}

// Run tests.
let (tx, rx) = channel::<(String, SuiteResult)>();
Expand Down Expand Up @@ -424,12 +427,12 @@ impl TestArgs {
// setUp and constructor.
for (kind, arena) in &result.traces {
if !matches!(kind, TraceKind::Execution) {
decoder.identify(arena, &mut local_identifier);
decoder.identify(arena, &mut identifier);
}
}

for arena in trace {
decoder.identify(arena, &mut local_identifier);
decoder.identify(arena, &mut identifier);
gas_report.analyze([arena], &decoder).await;
}
}
Expand Down

0 comments on commit e74d632

Please sign in to comment.