Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
i-m-aditya committed Jan 24, 2023
1 parent 5de77eb commit 03779e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli/src/cmd/forge/script/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use ethers::{
prelude::{Middleware, Signer},
types::{transaction::eip2718::TypedTransaction, U256},
};
use foundry_common::{contracts::flatten_contracts, try_get_http_provider, shell};
use foundry_common::{contracts::flatten_contracts, shell, try_get_http_provider};
use std::sync::Arc;
use tracing::trace;

Expand All @@ -31,7 +31,7 @@ impl ScriptArgs {
self.maybe_load_private_key(&mut script_config)?;

if self.opts.args.silent {
shell::set_shell(shell::Shell::from_args(true, false))?;
shell::set_shell(shell::Shell::from_args(true, false))?;
}

if let Some(ref fork_url) = script_config.evm_opts.fork_url {
Expand Down Expand Up @@ -82,14 +82,14 @@ impl ScriptArgs {
result,
verify,
)
.await
.await;
}

let known_contracts = flatten_contracts(&highlevel_known_contracts, true);
let mut decoder = self.decode_traces(&script_config, &mut result, &known_contracts)?;

if self.debug {
return self.run_debugger(&decoder, sources, result, project, highlevel_known_contracts)
return self.run_debugger(&decoder, sources, result, project, highlevel_known_contracts);
}

if let Some((new_traces, updated_libraries, updated_contracts)) = self
Expand Down Expand Up @@ -159,7 +159,7 @@ impl ScriptArgs {
&flatten_contracts(&highlevel_known_contracts, true),
)?;

return Ok(Some((new_traces, libraries, highlevel_known_contracts)))
return Ok(Some((new_traces, libraries, highlevel_known_contracts)));
}

// Add predeploy libraries to the list of broadcastable transactions.
Expand Down Expand Up @@ -206,7 +206,7 @@ impl ScriptArgs {
result.script_wallets,
verify,
)
.await
.await;
}
self.resume_single_deployment(
script_config,
Expand Down

0 comments on commit 03779e3

Please sign in to comment.