@tradeport/sui-trading-sdk 0.1.78 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tradeport/sui-trading-sdk
2
2
 
3
+ ## 0.1.79
4
+
5
+ ### Patch Changes
6
+
7
+ - e633f1f: Updated assertion for nfts in unshared kiosks to make sure that nft kiosk is found
8
+
3
9
  ## 0.1.78
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -417,8 +417,8 @@ var assertNftInSharedKiosk = async ({
417
417
  });
418
418
  kiosksToCheck = res?.kiosks;
419
419
  }
420
- const isNftInSharedKiosk = kiosksToCheck?.filter((k) => k.is_shared && k.id === kioskId)?.length > 0;
421
- if (!isNftInSharedKiosk) {
420
+ const nftKiosk = kiosksToCheck?.find((k) => k.id === kioskId);
421
+ if (nftKiosk && !nftKiosk?.is_shared) {
422
422
  throw new Error("NFT is inside a kiosk that is not shared");
423
423
  }
424
424
  };