mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-17 08:06:07 +00:00
Make backwards compatible with CountedMap (#9126)
This commit is contained in:
1 parent
b21c49524f
commit
9b87134bc6
4 files changed
+29
-29
No files matched your search
@@ -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