mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-17 08:06:07 +00:00
Frame remove_all with size limit. (#9106)
* remove prefixed content with limit. * test match * factor comment and factor ext limit removal. * fix benchmark Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
1 parent
5f0257f3b3
commit
693b39f43b
36 files changed
+312
-239
No files matched your search
@@ -29,8 +29,8 @@ 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();
|
||||
Nominators::<T>::remove_all();
|
||||
Validators::<T>::remove_all(None);
|
||||
Nominators::<T>::remove_all(None);
|
||||
}
|
||||
|
||||
/// Grab a funded user.
|
||||
|
||||
Reference in new issue
Block a user