From 0026e47e14cd32032772a57987ff877d65d66856 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Tue, 5 Nov 2024 14:27:30 -0600 Subject: [PATCH 1/2] fix: add back skip filter over avoid-contracts --- crates/compilers/src/zksync/compile/project.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/compilers/src/zksync/compile/project.rs b/crates/compilers/src/zksync/compile/project.rs index d44f2fb4..672cf3b2 100644 --- a/crates/compilers/src/zksync/compile/project.rs +++ b/crates/compilers/src/zksync/compile/project.rs @@ -46,8 +46,12 @@ impl<'a> ProjectCompiler<'a> { /// multiple `jobs`, see [`crate::Project::set_solc_jobs()`]. pub fn with_sources( project: &'a Project, - sources: Sources, + mut sources: Sources, ) -> Result { + println!("wtf bro"); + if let Some(filter) = &project.sparse_output { + sources.retain(|f, _| filter.is_match(f)) + } let graph = Graph::resolve_sources(&project.paths, sources)?; let (sources, edges) = graph.into_sources_by_version( project.offline, From 9669c2f1ea96494b3b3e60c83b602832336a84ad Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Tue, 5 Nov 2024 14:30:09 -0600 Subject: [PATCH 2/2] fix: add back skip filter over avoid-contracts --- crates/compilers/src/zksync/compile/project.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/compilers/src/zksync/compile/project.rs b/crates/compilers/src/zksync/compile/project.rs index 672cf3b2..6d0e97ea 100644 --- a/crates/compilers/src/zksync/compile/project.rs +++ b/crates/compilers/src/zksync/compile/project.rs @@ -48,7 +48,6 @@ impl<'a> ProjectCompiler<'a> { project: &'a Project, mut sources: Sources, ) -> Result { - println!("wtf bro"); if let Some(filter) = &project.sparse_output { sources.retain(|f, _| filter.is_match(f)) }