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
@@ -498,8 +498,8 @@ fn post_conditions() {
fn check_count() {
let nominator_count = Nominators::<Test>::iter().count() as u32;
let validator_count = Validators::<Test>::iter().count() as u32;
assert_eq!(nominator_count, CurrentNominatorsCount::<Test>::get());
assert_eq!(validator_count, CurrentValidatorsCount::<Test>::get());
assert_eq!(nominator_count, CounterForNominators::<Test>::get());
assert_eq!(validator_count, CounterForValidators::<Test>::get());
}
fn check_ledgers() {