Destroy a single item.
Origin must be Signed and the signing account must be either:
the Admin of the collection;
collection
the Owner of the item;
item
collection: The collection of the item to be burned.
item: The item of the item to be burned.
check_owner: If Some then the operation will fail with WrongOwner unless the item is owned by this value.
check_owner
Some
WrongOwner
Emits Burned with the actual amount burned.
Burned
Weight: O(1) Modes: check_owner.is_some().
O(1)
check_owner.is_some()
Destroy a single item.
Origin must be Signed and the signing account must be either:
the Admin of the
collection
;the Owner of the
item
;collection
: The collection of the item to be burned.item
: The item of the item to be burned.check_owner
: IfSome
then the operation will fail withWrongOwner
unless the item is owned by this value.Emits
Burned
with the actual amount burned.Weight:
O(1)
Modes:check_owner.is_some()
.