From 338df66575e9a0ecbd52f4daeba2e41f6aba4878 Mon Sep 17 00:00:00 2001 From: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:51:12 -0800 Subject: [PATCH] fix --- src/dfx/src/commands/canister/delete.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dfx/src/commands/canister/delete.rs b/src/dfx/src/commands/canister/delete.rs index af19f9937c..3cd04a9faa 100644 --- a/src/dfx/src/commands/canister/delete.rs +++ b/src/dfx/src/commands/canister/delete.rs @@ -138,7 +138,10 @@ async fn delete_canister( match wallet_canister_id(network, &identity_name)? { Some(canister_id) => WithdrawTarget::Canister { canister_id }, None if CYCLES_LEDGER_ENABLED => { - let Some(my_principal) = env.get_selected_identity_principal() else { bail!("Identity has no principal attached") }; + let Some(my_principal) = env.get_selected_identity_principal() + else { + bail!("Identity has no principal attached") + }; WithdrawTarget::CyclesLedger { to: Account { owner: my_principal,