diff --git a/Cargo.lock b/Cargo.lock index 5b65603..a2a16d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1071,7 +1071,7 @@ dependencies = [ [[package]] name = "kipt" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "async-trait", diff --git a/src/declare.rs b/src/declare.rs index 4e7e225..6d1bcf6 100644 --- a/src/declare.rs +++ b/src/declare.rs @@ -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; }