Skip to content

Commit 00c944b

Browse files
authored
fix(verify): strip profile from contract name (#9699)
1 parent 73becfb commit 00c944b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/script/src/verify.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,14 @@ impl VerifyBundle {
120120
warn!("Skipping verification of Vyper contract: {}", artifact.name);
121121
}
122122

123+
// Strip artifact profile from contract name when creating contract info.
123124
let contract = ContractInfo {
124125
path: Some(artifact.source.to_string_lossy().to_string()),
125-
name: artifact.name.clone(),
126+
name: artifact
127+
.name
128+
.strip_suffix(&format!(".{}", &artifact.profile))
129+
.unwrap_or_else(|| &artifact.name)
130+
.to_string(),
126131
};
127132

128133
// We strip the build metadadata information, since it can lead to

0 commit comments

Comments
 (0)