From d410dd2f051487cd3d46b7c2de6ab79c6eb0ca53 Mon Sep 17 00:00:00 2001 From: Jrigada Date: Tue, 4 Feb 2025 09:23:13 -0300 Subject: [PATCH] Clippy fix --- crates/forge/bin/cmd/create.rs | 1 - crates/forge/bin/cmd/create/zksync.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/forge/bin/cmd/create.rs b/crates/forge/bin/cmd/create.rs index fa2ff0a21..a5662e09c 100644 --- a/crates/forge/bin/cmd/create.rs +++ b/crates/forge/bin/cmd/create.rs @@ -110,7 +110,6 @@ impl CreateArgs { /// Executes the command to create a contract pub async fn run(mut self) -> Result<()> { let mut config = self.load_config()?; - let timeout = config.transaction_timeout; // Install missing dependencies. if install::install_missing_dependencies(&mut config) && config.auto_detect_remappings { // need to re-configure here to also catch additional remappings diff --git a/crates/forge/bin/cmd/create/zksync.rs b/crates/forge/bin/cmd/create/zksync.rs index a57b1d7b7..745a55e8b 100644 --- a/crates/forge/bin/cmd/create/zksync.rs +++ b/crates/forge/bin/cmd/create/zksync.rs @@ -71,7 +71,7 @@ impl CreateArgs { project.find_contract_path(&self.contract.name)? }; - let config = self.build.try_load_config_emit_warnings()?; + let config = self.build.load_config()?; let zk_project = foundry_config::zksync::config_create_project(&config, config.cache, false)?; let zk_compiler = ProjectCompiler::new().files([target_path.clone()]); @@ -105,7 +105,7 @@ impl CreateArgs { }; // Add arguments to constructor - let config = self.eth.try_load_config_emit_warnings()?; + let config = self.eth.load_config()?; let provider = utils::get_provider_zksync(&config)?; let params = match abi.constructor { Some(ref v) => {