Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
re-gius committed Dec 3, 2024
1 parent 584fe53 commit 5333a7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/root-offences/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl Config for Test {
pub struct ExtBuilder {
validator_count: u32,
minimum_validator_count: u32,
invulnerables: Vec<AccountId>,
invulnerables: BoundedVec<AccountId, <Test as pallet_staking::Config>::MaxInvulnerables>,
balance_factor: Balance,
}

Expand Down Expand Up @@ -237,7 +237,7 @@ impl ExtBuilder {
stakers: stakers.clone(),
validator_count: self.validator_count,
minimum_validator_count: self.minimum_validator_count,
invulnerables: BoundedVec::force_from(self.invulnerables),
invulnerables: self.invulnerables,
slash_reward_fraction: Perbill::from_percent(10),
..Default::default()
}
Expand Down
6 changes: 1 addition & 5 deletions substrate/frame/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8710,11 +8710,7 @@ mod getters {
let era: EraIndex = 12;
let mut reward_map = BoundedBTreeMap::new();
frame_support::assert_ok!(reward_map.try_insert(11, 1));
let reward_points =
EraRewardPoints::<mock::AccountId, <Test as Config>::MaxValidatorsCount> {
total: 1,
individual: reward_map,
};
let reward_points = EraRewardPoints::<_, _> { total: 1, individual: reward_map };
ErasRewardPoints::<Test>::insert(era, reward_points);

// when
Expand Down

0 comments on commit 5333a7d

Please sign in to comment.