Skip to content

Commit

Permalink
fix: deploy script for empty contract list
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Nov 12, 2024
1 parent ebd3193 commit 63a7f88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/deploy/src/adodb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ pub fn deploy(
let mut deployed_contracts: Vec<(String, String, u64)> = vec![];
for (name, version, upload) in all_contracts {
if !contracts_to_deploy.is_empty() && !contracts_to_deploy.contains(&name) {
log::info!(
"Skipping {} {} - not included in deploy list",
name,
version
);
continue;
}

Expand Down
1 change: 1 addition & 0 deletions packages/deploy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ fn main() {
.to_lowercase()
.replace("andromeda_", "")
})
.filter(|s| !s.is_empty())
.collect::<Vec<String>>();

let adodb_res = adodb::deploy(
Expand Down

0 comments on commit 63a7f88

Please sign in to comment.