Skip to content

Commit

Permalink
Merge pull request #222 from rmrk-team/bug/186-remove-unnecessary-che…
Browse files Browse the repository at this point in the history
…ck-in-list

remove unnecessary check in list
  • Loading branch information
ilionic authored Sep 29, 2022
2 parents 79ecb32 + a22d3aa commit 20d8a3c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pallets/rmrk-market/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,6 @@ pub mod pallet {

// Lock NFT to prevent transfers or interactions with the NFT
pallet_rmrk_core::Pallet::<T>::set_lock((collection_id, nft_id), true);
// Check if a prior listing is in storage from previous owner and update if found
if Self::is_nft_listed(collection_id, nft_id) {
ListedNfts::<T>::remove(collection_id, nft_id);
}

// Add new ListInfo with listed_by, amount, Option<BlockNumber>
ListedNfts::<T>::insert(
Expand Down

0 comments on commit 20d8a3c

Please sign in to comment.