Fix CandidateRemoved event (#503)

This commit is contained in:
zjb0807
2021-06-23 00:59:54 +08:00
committed by GitHub
parent 5aca3b54d8
commit 9a1e8af944
@@ -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.