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

Commit

Permalink
Inverting events set and changed in nicks pallet (#6989)
Browse files Browse the repository at this point in the history
Fixing #6988
  • Loading branch information
g2udevelopment authored Aug 31, 2020
1 parent 1ca4b69 commit 964a3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/nicks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ decl_module! {
ensure!(name.len() <= T::MaxLength::get(), Error::<T>::TooLong);

let deposit = if let Some((_, deposit)) = <NameOf<T>>::get(&sender) {
Self::deposit_event(RawEvent::NameSet(sender.clone()));
Self::deposit_event(RawEvent::NameChanged(sender.clone()));
deposit
} else {
let deposit = T::ReservationFee::get();
T::Currency::reserve(&sender, deposit.clone())?;
Self::deposit_event(RawEvent::NameChanged(sender.clone()));
Self::deposit_event(RawEvent::NameSet(sender.clone()));
deposit
};

Expand Down

0 comments on commit 964a3a7

Please sign in to comment.