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: Roman Kashitsyn <[email protected]>
  • Loading branch information
maciejdfinity and roman-kashitsyn authored Aug 18, 2023
1 parent a9d251f commit 0493df6
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 @@ -568,7 +568,7 @@ fn use_allowance(
None => Err(TransferFromError::InsufficientAllowance {
allowance: Nat::from(0),
}),
Some(allowance) => {
Some((current_allowance, current_expiration)) => {
if allowance.1 != 0 && allowance.1 <= now {
Err(TransferFromError::InsufficientAllowance {
allowance: Nat::from(0),
Expand Down

0 comments on commit 0493df6

Please sign in to comment.