From ee6402d3b951edbbc29b369b0c200aa0be2ef848 Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Tue, 12 Nov 2024 11:41:05 +0000 Subject: [PATCH] fix: deploy script build --- packages/deploy/src/main.rs | 6 +++++- packages/deploy/src/slack.rs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/deploy/src/main.rs b/packages/deploy/src/main.rs index 914c972b3..531d67e9c 100644 --- a/packages/deploy/src/main.rs +++ b/packages/deploy/src/main.rs @@ -49,7 +49,11 @@ fn main() { }) .collect::>(); - let adodb_res = adodb::deploy(chain, kernel_address.unwrap(), Some(contracts_to_deploy)); + let adodb_res = adodb::deploy( + chain.clone(), + kernel_address.unwrap(), + Some(contracts_to_deploy), + ); if let Err(e) = adodb_res { println!("Error deploying ADODB: {}", e); SlackNotification::ADODeploymentFailed(chain.clone(), e) diff --git a/packages/deploy/src/slack.rs b/packages/deploy/src/slack.rs index e82976a09..5ae49ef2b 100644 --- a/packages/deploy/src/slack.rs +++ b/packages/deploy/src/slack.rs @@ -68,8 +68,8 @@ impl std::fmt::Display for SlackNotification { SlackNotification::ADODeploymentCompleted(chain, contracts) => { write!(f, "✅ *ADO Library Deployment Completed*\n```\n| Chain | {} |\n| Contracts | {} |```", chain, contracts.join(", ")) } - SlackNotification::ADODeploymentFailed(chain, contracts, error) => { - write!(f, "❌ *ADO Library Deployment Failed*\n```\n| Chain | {} |\n| Contracts | {} |\n| Error | {} |```", chain, contracts.join(", "), error) + SlackNotification::ADODeploymentFailed(chain, error) => { + write!(f, "❌ *ADO Library Deployment Failed*\n```\n| Chain | {} |\n| Error | {} |```", chain, error) } SlackNotification::ADOWarning(chain, contracts) => { write!(f, "⚠️ *Invalid Contracts*\n```\n| Chain | {} |\n| Contracts | {} |```", chain, contracts.join(", "))