Skip to content

Commit 6cc97a7

Browse files
adjust a little
1 parent 539fd96 commit 6cc97a7

File tree

10 files changed

+526
-507
lines changed

10 files changed

+526
-507
lines changed

crates/forge/src/cmd/build.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use super::{install, watch::WatchArgs};
1+
use super::watch::WatchArgs;
22
use clap::Parser;
33
use eyre::Result;
4+
use forge_verify::install_missing_dependencies;
45
use foundry_cli::{opts::BuildOpts, utils::LoadConfig};
56
use foundry_common::{compile::ProjectCompiler, shell};
67
use foundry_compilers::{
@@ -69,7 +70,7 @@ impl BuildArgs {
6970
pub fn run(self) -> Result<ProjectCompileOutput> {
7071
let mut config = self.load_config()?;
7172

72-
if install::install_missing_dependencies(&mut config) && config.auto_detect_remappings {
73+
if install_missing_dependencies(&mut config) && config.auto_detect_remappings {
7374
// need to re-configure here to also catch additional remappings
7475
config = self.load_config()?;
7576
}

crates/forge/src/cmd/clone.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
use super::{init::InitArgs, install::DependencyInstallOpts};
1+
use super::init::InitArgs;
22
use alloy_primitives::{Address, Bytes, ChainId, TxHash};
33
use clap::{Parser, ValueHint};
44
use eyre::Result;
5+
use forge_verify::DependencyInstallOpts;
56
use foundry_block_explorers::{
67
contract::{ContractCreationData, ContractMetadata, Metadata},
78
errors::EtherscanError,

crates/forge/src/cmd/coverage.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{install, test::TestArgs, watch::WatchArgs};
1+
use super::{test::TestArgs, watch::WatchArgs};
22
use crate::{
33
coverage::{
44
analysis::{SourceAnalysis, SourceFile, SourceFiles},
@@ -12,6 +12,7 @@ use crate::{
1212
use alloy_primitives::{map::HashMap, Address, Bytes, U256};
1313
use clap::{Parser, ValueEnum, ValueHint};
1414
use eyre::{Context, Result};
15+
use forge_verify::install_missing_dependencies;
1516
use foundry_cli::utils::{LoadConfig, STATIC_FUZZ_SEED};
1617
use foundry_common::compile::ProjectCompiler;
1718
use foundry_compilers::{
@@ -88,7 +89,7 @@ impl CoverageArgs {
8889
let (mut config, evm_opts) = self.load_config_and_evm_opts()?;
8990

9091
// install missing dependencies
91-
if install::install_missing_dependencies(&mut config) && config.auto_detect_remappings {
92+
if install_missing_dependencies(&mut config) && config.auto_detect_remappings {
9293
// need to re-configure here to also catch additional remappings
9394
config = self.load_config()?;
9495
}

crates/forge/src/cmd/create.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::cmd::install;
21
use alloy_chains::Chain;
32
use alloy_dyn_abi::{DynSolValue, JsonAbiExt, Specifier};
43
use alloy_json_abi::{Constructor, JsonAbi};
@@ -11,7 +10,7 @@ use alloy_signer::Signer;
1110
use alloy_transport::TransportError;
1211
use clap::{Parser, ValueHint};
1312
use eyre::{Context, Result};
14-
use forge_verify::{RetryArgs, VerifierArgs, VerifyArgs};
13+
use forge_verify::{install_missing_dependencies, RetryArgs, VerifierArgs, VerifyArgs};
1514
use foundry_cli::{
1615
opts::{BuildOpts, EthereumOpts, EtherscanOpts, TransactionOpts},
1716
utils::{self, read_constructor_args_file, remove_contract, LoadConfig},
@@ -106,7 +105,7 @@ impl CreateArgs {
106105
let mut config = self.load_config()?;
107106

108107
// Install missing dependencies.
109-
if install::install_missing_dependencies(&mut config) && config.auto_detect_remappings {
108+
if install_missing_dependencies(&mut config) && config.auto_detect_remappings {
110109
// need to re-configure here to also catch additional remappings
111110
config = self.load_config()?;
112111
}

crates/forge/src/cmd/init.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use super::install::DependencyInstallOpts;
21
use clap::{Parser, ValueHint};
32
use eyre::Result;
3+
use forge_verify::DependencyInstallOpts;
44
use foundry_cli::utils::Git;
55
use foundry_common::fs;
66
use foundry_compilers::artifacts::remappings::Remapping;

0 commit comments

Comments
 (0)