mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 07:31:03 +00:00
Pallet staking events to named enum (#12342)
* Pallet staking events to named enum * fmt * update np staking tests * update remaining events * update benchmarks * Update frame/nomination-pools/test-staking/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/staking/src/pallet/mod.rs * Update frame/staking/src/pallet/mod.rs * Update frame/staking/src/lib.rs * Update frame/staking/src/pallet/impls.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: parity-processbot <> Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>
This commit is contained in:
@@ -953,7 +953,9 @@ where
|
||||
if bonded_eras.first().filter(|(_, start)| offence_session >= *start).is_some() {
|
||||
R::report_offence(reporters, offence)
|
||||
} else {
|
||||
<Pallet<T>>::deposit_event(Event::<T>::OldSlashingReportDiscarded(offence_session));
|
||||
<Pallet<T>>::deposit_event(Event::<T>::OldSlashingReportDiscarded {
|
||||
session_index: offence_session,
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user