pub fn burn<T: Config<I>, I: 'static>(
    collection: T::CollectionId,
    item: T::ItemId,
    check_owner: Option<<<T as Config>::Lookup as StaticLookup>::Source>
Expand description

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: If Some then the operation will fail with WrongOwner unless the item is owned by this value.

Emits Burned with the actual amount burned.

Weight: O(1) Modes: check_owner.is_some().

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::burn.