diff --git a/ethers-solc/src/lib.rs b/ethers-solc/src/lib.rs index 38644689..ef27c4f4 100644 --- a/ethers-solc/src/lib.rs +++ b/ethers-solc/src/lib.rs @@ -219,15 +219,7 @@ impl Project { // once matched, proceed to compile with it compiled.extend(self.compile_with_version(&solc, sources)?); } - if !compiled.has_compiled_contracts() && - !compiled.has_compiler_errors() && - self.cached && - self.paths.cache.exists() - { - let cache = SolFilesCache::read(&self.paths.cache)?; - let artifacts = cache.read_artifacts::(&self.paths.artifacts)?; - compiled.artifacts.extend(artifacts); - } + Ok(compiled) }