Skip to content

Commit f625d0f

Browse files
authored
fix: coverage bug (#7532)
fix
1 parent 0578aae commit f625d0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/forge/bin/cmd/coverage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl CoverageArgs {
268268

269269
let anchors: HashMap<ContractId, Vec<ItemAnchor>> = source_maps
270270
.iter()
271+
.filter(|(contract_id, _)| contract_id.version == version)
271272
.filter_map(|(contract_id, (_, deployed_source_map))| {
272273
// TODO: Creation source map/bytecode as well
273274
Some((

0 commit comments

Comments
 (0)