From f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9 Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Tue, 2 Apr 2024 01:51:24 +0400 Subject: [PATCH] fix: coverage bug (#7532) fix --- crates/forge/bin/cmd/coverage.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/forge/bin/cmd/coverage.rs b/crates/forge/bin/cmd/coverage.rs index c59a54ade72f..9b6d19e74bee 100644 --- a/crates/forge/bin/cmd/coverage.rs +++ b/crates/forge/bin/cmd/coverage.rs @@ -268,6 +268,7 @@ impl CoverageArgs { let anchors: HashMap> = source_maps .iter() + .filter(|(contract_id, _)| contract_id.version == version) .filter_map(|(contract_id, (_, deployed_source_map))| { // TODO: Creation source map/bytecode as well Some((