mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
Fix CandidateRemoved event (#503)
This commit is contained in:
@@ -379,9 +379,9 @@ pub mod pallet {
|
|||||||
candidates.remove(index);
|
candidates.remove(index);
|
||||||
<LastAuthoredBlock<T>>::remove(who.clone());
|
<LastAuthoredBlock<T>>::remove(who.clone());
|
||||||
Ok(candidates.len())
|
Ok(candidates.len())
|
||||||
});
|
})?;
|
||||||
Self::deposit_event(Event::CandidateRemoved(who.clone()));
|
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.
|
/// Assemble the current set of candidates and invulnerables into the next collator set.
|
||||||
|
|||||||
Reference in New Issue
Block a user