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
@@ -30,9 +30,9 @@ const SEED: u32 = 0;
/// This function removes all validators and nominators from storage.
pub fn clear_validators_and_nominators<T: Config>() {
Validators::<T>::remove_all(None);
CurrentValidatorsCount::<T>::kill();
CounterForValidators::<T>::kill();
Nominators::<T>::remove_all(None);
CurrentNominatorsCount::<T>::kill();
CounterForNominators::<T>::kill();
}
/// Grab a funded user.