Skip to content

Commit

Permalink
fix(verify): strip profile from contract name (#9699)
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy authored Jan 17, 2025
1 parent 73becfb commit 00c944b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/script/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,14 @@ impl VerifyBundle {
warn!("Skipping verification of Vyper contract: {}", artifact.name);
}

// Strip artifact profile from contract name when creating contract info.
let contract = ContractInfo {
path: Some(artifact.source.to_string_lossy().to_string()),
name: artifact.name.clone(),
name: artifact
.name
.strip_suffix(&format!(".{}", &artifact.profile))
.unwrap_or_else(|| &artifact.name)
.to_string(),
};

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

0 comments on commit 00c944b

Please sign in to comment.