Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Jan 17, 2024
1 parent dd3ef8a commit 338df66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dfx/src/commands/canister/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 338df66

Please sign in to comment.