Skip to content

Commit 20d8a3c

Browse files
authored
Merge pull request #222 from rmrk-team/bug/186-remove-unnecessary-check-in-list
remove unnecessary check in list
2 parents 79ecb32 + a22d3aa commit 20d8a3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pallets/rmrk-market/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ pub mod pallet {
256256

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

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

0 commit comments

Comments
 (0)