Skip to content

Commit

Permalink
Fix CandidateRemoved event (paritytech#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 authored and chevdor committed Jun 24, 2021
1 parent dd38694 commit 87f9936
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 87f9936

Please sign in to comment.