use cache's exisiting id to see if it's dirty

This commit is contained in:
alpharush 2022-12-21 15:24:44 -06:00
parent 6812d11b81
commit dbce57d53b
1 changed files with 2 additions and 4 deletions

View File

@ -789,10 +789,8 @@ impl<'a, T: ArtifactOutput> ArtifactsCacheInner<'a, T> {
tracing::trace!("changed content hash for source file \"{}\"", file.display());
return true
}
if let Some(compilation_unit) = self
.cache
.compilation_units
.get(&CompilationUnitId::new(version.clone(), self.project.solc_config.clone()))
if let Some(compilation_unit) =
self.cache.compilation_units.get(&entry.compilation_unit)
{
if self.project.solc_config != compilation_unit.solc_config {
tracing::trace!(