Function pallet_uniques::pallet::dispatchables::destroy
source · pub fn destroy<T: Config<I>, I: 'static>(
collection: T::CollectionId,
witness: DestroyWitness,
)
Expand description
Destroy a collection of fungible items.
The origin must conform to ForceOrigin
or must be Signed
and the sender must be the
owner of the collection
.
collection
: The identifier of the collection to be destroyed.witness
: Information on the items minted in the collection. This must be correct.
Emits Destroyed
event when successful.
Weight: O(n + m)
where:
n = witness.items
m = witness.item_metadatas
a = witness.attributes
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::destroy
.