mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 15:11:03 +00:00
Make backwards compatible with CountedMap (#9126)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user