Function pallet_assets::pallet::dispatchables::destroy_accounts
source · pub fn destroy_accounts<T: Config<I>, I: 'static>(id: T::AssetIdParameter)
Expand description
Destroy all accounts associated with a given asset.
destroy_accounts
should only be called after start_destroy
has been called, and the
asset is in a Destroying
state.
Due to weight restrictions, this function may need to be called multiple times to fully
destroy all accounts. It will destroy RemoveItemsLimit
accounts at a time.
id
: The identifier of the asset to be destroyed. This must identify an existing asset.
Each call emits the Event::DestroyedAccounts
event.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::destroy_accounts
.