Skip to content

Commit

Permalink
".git/.scripts/commands/fmt/fmt.sh"
Browse files Browse the repository at this point in the history
  • Loading branch information
command-bot committed Jul 30, 2024
1 parent d8c0648 commit c475f64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions substrate/frame/staking/src/pallet/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2240,15 +2240,13 @@ impl<T: Config> Pallet<T> {
ensure!(
<T as Config>::VoterList::iter()
.filter(|v| Self::status(&v) != Ok(StakerStatus::Idle))
.count() as u32 ==
Nominators::<T>::count() + Validators::<T>::count(),
.count() as u32 == Nominators::<T>::count() + Validators::<T>::count(),
"wrong external count (VoterList.count != Nominators.count + Validators.count)"
);
ensure!(
<T as Config>::TargetList::iter()
.filter(|t| Self::status(&t) == Ok(StakerStatus::Validator))
.count() as u32 ==
Validators::<T>::count(),
.count() as u32 == Validators::<T>::count(),
"wrong external count (TargetList.count != Validators.count)"
);
ensure!(
Expand Down

0 comments on commit c475f64

Please sign in to comment.