From 63a7f8898e653b1bb322bbb6d5b03760ef9f2775 Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Tue, 12 Nov 2024 12:51:48 +0000 Subject: [PATCH] fix: deploy script for empty contract list --- packages/deploy/src/adodb.rs | 5 +++++ packages/deploy/src/main.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/packages/deploy/src/adodb.rs b/packages/deploy/src/adodb.rs index 5e5ae19dd..3e6644e3b 100644 --- a/packages/deploy/src/adodb.rs +++ b/packages/deploy/src/adodb.rs @@ -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; } diff --git a/packages/deploy/src/main.rs b/packages/deploy/src/main.rs index 531d67e9c..d656ff502 100644 --- a/packages/deploy/src/main.rs +++ b/packages/deploy/src/main.rs @@ -47,6 +47,7 @@ fn main() { .to_lowercase() .replace("andromeda_", "") }) + .filter(|s| !s.is_empty()) .collect::>(); let adodb_res = adodb::deploy(