git.delta.rocks / unique-network / refs/commits / 6c4c550942e6

difftreelog

feat handle amounts in burn_item

Yaroslav Bolyukin2021-10-06parent: #f3a64f5.patch.diff
in: master

1 file changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
1611 }1611 }
16121612
1613 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