Skip to content

Commit

Permalink
Bug fix: full name match required instead of only starts_with when lo…
Browse files Browse the repository at this point in the history
…cating artifacts (#19)
  • Loading branch information
0xKawaka authored Jan 24, 2024
1 parent 0b90e8b commit 51e687d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/declare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ fn locate_artifacts(
} else if let Some(file_name) = entry_path.file_name() {
trace!("Checking file for artifacts: {:?}", file_name);
let fname = file_name.to_string_lossy();
if !fname.starts_with(contract_name) {
if !fname.starts_with(contract_name) || fname.split('.').next() != Some(contract_name) {
continue;
}

Expand Down

0 comments on commit 51e687d

Please sign in to comment.