Skip to content

Commit

Permalink
fix: deploy script build
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Nov 12, 2024
1 parent 359ee4f commit ee6402d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/deploy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ fn main() {
})
.collect::<Vec<String>>();

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)
Expand Down
4 changes: 2 additions & 2 deletions packages/deploy/src/slack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(", "))
Expand Down

0 comments on commit ee6402d

Please sign in to comment.