mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +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:
@@ -417,9 +417,9 @@ pub mod pallet {
|
||||
for (instance, details) in Asset::<T, I>::drain_prefix(&class) {
|
||||
Account::<T, I>::remove((&details.owner, &class, &instance));
|
||||
}
|
||||
InstanceMetadataOf::<T, I>::remove_prefix(&class);
|
||||
InstanceMetadataOf::<T, I>::remove_prefix(&class, None);
|
||||
ClassMetadataOf::<T, I>::remove(&class);
|
||||
Attribute::<T, I>::remove_prefix((&class,));
|
||||
Attribute::<T, I>::remove_prefix((&class,), None);
|
||||
T::Currency::unreserve(&class_details.owner, class_details.total_deposit);
|
||||
|
||||
Self::deposit_event(Event::Destroyed(class));
|
||||
|
||||
Reference in New Issue
Block a user