mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-31 16:09:52 +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
@@ -463,7 +463,7 @@ pub mod pallet {
|
||||
_subkeys: u32,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
ensure_root(origin)?;
|
||||
storage::unhashed::kill_prefix(&prefix);
|
||||
storage::unhashed::kill_prefix(&prefix, None);
|
||||
Ok(().into())
|
||||
}
|
||||
|
||||
@@ -1334,7 +1334,7 @@ impl<T: Config> Pallet<T> {
|
||||
if let InitKind::Full = kind {
|
||||
<Events<T>>::kill();
|
||||
EventCount::<T>::kill();
|
||||
<EventTopics<T>>::remove_all();
|
||||
<EventTopics<T>>::remove_all(None);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1447,7 +1447,7 @@ impl<T: Config> Pallet<T> {
|
||||
pub fn reset_events() {
|
||||
<Events<T>>::kill();
|
||||
EventCount::<T>::kill();
|
||||
<EventTopics<T>>::remove_all();
|
||||
<EventTopics<T>>::remove_all(None);
|
||||
}
|
||||
|
||||
/// Assert the given `event` exists.
|
||||
|
||||
Reference in new issue
Block a user