difftreelog
feat handle amounts in burn_item
in: master
1 file changed
pallets/nft/src/lib.rsdiffbeforeafterboth1611 }1611 }161216121613 match collection.mode {1613 match collection.mode {1614 CollectionMode::NFT => Self::burn_nft_item(collection, item_id)?,1614 CollectionMode::NFT => match value {1615 1 => Self::burn_nft_item(collection, item_id)?,1616 0 => (),1617 _ => fail!(<Error<T>>::TokenValueTooLow),1618 },1615 CollectionMode::Fungible(_) => Self::burn_fungible_item(collection, item_owner, value)?,1619 CollectionMode::Fungible(_) => Self::burn_fungible_item(collection, owner, value)?,1616 CollectionMode::ReFungible => {1620 CollectionMode::ReFungible => Self::burn_refungible_item(collection, item_id, owner, value)?,1617 Self::burn_refungible_item(collection, item_id, item_owner)?1618 }1619 _ => (),1621 _ => (),1620 };1622 };16211623