Skip to content

Commit

Permalink
Merge pull request #39 from Moonsong-Labs/db/add-skip-usage
Browse files Browse the repository at this point in the history
fix: add back skip filter over avoid-contracts
  • Loading branch information
dutterbutter authored Nov 5, 2024
2 parents 7db9a2e + 9669c2f commit 7c69695
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/compilers/src/zksync/compile/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ impl<'a> ProjectCompiler<'a> {
/// multiple `jobs`, see [`crate::Project::set_solc_jobs()`].
pub fn with_sources(
project: &'a Project<ZkSolcCompiler, ZkArtifactOutput>,
sources: Sources,
mut sources: Sources,
) -> Result<Self> {
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,
Expand Down

0 comments on commit 7c69695

Please sign in to comment.