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

Commit

Permalink
Fix CandidateRemoved event (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 authored and slumber committed Sep 1, 2021
1 parent 23fff79 commit 001725d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/collator-selection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ pub mod pallet {
candidates.remove(index);
<LastAuthoredBlock<T>>::remove(who.clone());
Ok(candidates.len())
});
})?;
Self::deposit_event(Event::CandidateRemoved(who.clone()));
current_count
Ok(current_count)
}

/// Assemble the current set of candidates and invulnerables into the next collator set.
Expand Down

0 comments on commit 001725d

Please sign in to comment.