Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed Mar 7, 2023
1 parent cc2b263 commit 300466d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,10 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {

let deposit_lock_event = |prev: T::Balance, after: T::Balance, reason: Reasons| {
if prev < after {
let amount = after.saturaitng_sub(prev);
let amount = after.saturating_sub(prev);
Self::deposit_event(Event::Locked { who: who.clone(), amount, reason });
} else if prev > after {
let amount = prev.saturaitng_sub(after);
let amount = prev.saturating_sub(after);
Self::deposit_event(Event::Unlocked { who: who.clone(), amount, reason });
}
};
Expand Down

0 comments on commit 300466d

Please sign in to comment.