diff --git a/ethers-solc/src/config.rs b/ethers-solc/src/config.rs index 9195cd6a..735afeaf 100644 --- a/ethers-solc/src/config.rs +++ b/ethers-solc/src/config.rs @@ -84,15 +84,6 @@ impl ProjectPathsConfig { paths } - /// Returns all `--include-path` paths that should be used for this project - /// - /// See [IncludePaths] - pub fn include_paths(&self) -> Vec { - // Note: root must not be included, since it will be used as base-path, which would be a - // conflict - vec![self.sources.clone(), self.tests.clone(), self.scripts.clone()] - } - /// Creates all configured dirs and files pub fn create_all(&self) -> std::result::Result<(), SolcIoError> { if let Some(parent) = self.cache.parent() { diff --git a/ethers-solc/src/lib.rs b/ethers-solc/src/lib.rs index 1f2f65c3..ac729746 100644 --- a/ethers-solc/src/lib.rs +++ b/ethers-solc/src/lib.rs @@ -804,7 +804,7 @@ impl ProjectBuilder { artifacts, ignored_error_codes, mut allowed_paths, - mut include_paths, + include_paths, solc_jobs, offline, build_info, @@ -823,8 +823,6 @@ impl ProjectBuilder { // allow every contract under root by default allowed_paths.insert(paths.root.clone()); - // allow paths where contracts are stored by default - include_paths.extend(paths.include_paths()); Ok(Project { paths,