Skip to content

Commit

Permalink
fix: etherscan identifier for scripts (foundry-rs#8528)
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr authored Jul 26, 2024
1 parent 9444c62 commit e606f53
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/script/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,6 @@ impl ExecutedState {
self.script_config.evm_opts.get_remote_chain_id().await,
)?;

// Decoding traces using etherscan is costly as we run into rate limits,
// causing scripts to run for a very long time unnecessarily.
// Therefore, we only try and use etherscan if the user has provided an API key.
let should_use_etherscan_traces = self.script_config.config.etherscan_api_key.is_some();
if !should_use_etherscan_traces {
identifier.etherscan = None;
}

for (_, trace) in &self.execution_result.traces {
decoder.identify(trace, &mut identifier);
}
Expand Down

0 comments on commit e606f53

Please sign in to comment.