Fix CandidateRemoved event (#503)

This commit is contained in:
zjb0807
2021-06-23 00:59:54 +08:00
committed by GitHub
parent 6c688ce9c2
commit 0aa7880ffe
+2 -2
View File
@@ -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.