Make backwards compatible with CountedMap (#9126)

This commit is contained in:
Shawn Tabrizi
2021-06-16 15:19:10 +01:00
committed by GitHub
parent b21c49524f
commit 9b87134bc6
4 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -4107,9 +4107,9 @@ mod election_data_provider {
#[test]
fn capped_stakers_works() {
ExtBuilder::default().build_and_execute(|| {
let validator_count = CurrentValidatorsCount::<Test>::get();
let validator_count = CounterForValidators::<Test>::get();
assert_eq!(validator_count, 3);
let nominator_count = CurrentNominatorsCount::<Test>::get();
let nominator_count = CounterForNominators::<Test>::get();
assert_eq!(nominator_count, 1);
// Change the maximums