Skip to content

Commit

Permalink
Update pallets/api/src/fungibles/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daan van der Plas <[email protected]>
  • Loading branch information
chungquantin and Daanvdplas authored Jul 30, 2024
1 parent a58b2d0 commit 9e90b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/api/src/fungibles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub mod pallet {
}

current_allowance.saturating_reduce(value);
// Cancel the aproval and set the new value if `current_allowance` is more than zero
// Cancel the aproval and set the new value if `current_allowance` is more than zero.
AssetsOf::<T>::cancel_approval(origin.clone(), id.clone(), spender.clone())
.map_err(|e| e.with_weight(Self::weight_approve(0, 1)))?;

Expand Down

0 comments on commit 9e90b6a

Please sign in to comment.