Skip to content

Commit

Permalink
Update cycles-ledger/src/storage.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Locher <[email protected]>
  • Loading branch information
NikolasHaimerl and THLO authored Aug 29, 2023
1 parent 3bdbeb1 commit 4aa392a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycles-ledger/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ fn use_allowance(s: &mut State, account: &Account, spender: &Account, amount: u1
let key = (to_account_key(account), to_account_key(spender));

if amount == 0 {
ic_cdk::trap("Cannot use amount 0 from allowance")
ic_cdk::trap("Cannot deduct amount 0 from allowance")
}
let (current_allowance, current_expiration) = s.approvals.get(&key).unwrap_or_else(|| {
ic_cdk::trap(&format!(
Expand Down

0 comments on commit 4aa392a

Please sign in to comment.