Function pallet_assets::pallet::dispatchables::destroy_approvals
source · pub fn destroy_approvals<T: Config<I>, I: 'static>(id: T::AssetIdParameter)
Expand description
Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
destroy_approvals
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 approvals. It will destroy RemoveItemsLimit
approvals at a time.
id
: The identifier of the asset to be destroyed. This must identify an existing asset.
Each call emits the Event::DestroyedApprovals
event.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::destroy_approvals
.