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.
ForceOrigin
Signed
collection
NOTE: The collection must have 0 items to be destroyed.
witness
Emits Destroyed event when successful.
Destroyed
Weight: O(m + c + a) where:
O(m + c + a)
m = witness.item_metadatas
c = witness.item_configs
a = witness.attributes
Destroy a collection of fungible items.
The origin must conform to
ForceOrigin
or must beSigned
and the sender must be the owner of thecollection
.NOTE: The collection must have 0 items to be destroyed.
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(m + c + a)
where:m = witness.item_metadatas
c = witness.item_configs
a = witness.attributes