@tradeport/sui-trading-sdk 0.4.27 → 0.4.29

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/dist/index.js CHANGED
@@ -2078,7 +2078,7 @@ var getOBKiosk = async ({
2078
2078
  query: fetchWalletKiosks,
2079
2079
  variables: { wallet: addLeadingZerosAfter0x(wallet) }
2080
2080
  });
2081
- if (!sharedKioskState?.ownerKiosks) {
2081
+ if (sharedKioskState && !sharedKioskState?.ownerKiosks) {
2082
2082
  sharedKioskState.ownerKiosks = res?.kiosks;
2083
2083
  }
2084
2084
  return res?.kiosks?.filter((kiosk) => kiosk?.is_origin_byte && kiosk?.is_shared)?.[0]?.id;
@@ -6841,7 +6841,6 @@ var transferNfts = async ({ nftIds, recipientAddress, walletAddress }, context)
6841
6841
 
6842
6842
  // src/methods/unlistListings/unlistListings.ts
6843
6843
  var import_transactions26 = require("@mysten/sui/transactions");
6844
- var import_utils13 = require("@mysten/sui/utils");
6845
6844
  var unlistListings = async ({ listingIds, walletAddress }, context) => {
6846
6845
  const res = await gqlChainRequest({
6847
6846
  chain: "sui",
@@ -6860,7 +6859,7 @@ var unlistListings = async ({ listingIds, walletAddress }, context) => {
6860
6859
  if (DELOREAN_TOKEN_IDS_TO_DISABLE?.includes(listing?.nft?.token_id)) {
6861
6860
  throw new Error(DELOREAN_TOKEN_IDS_TO_DISABLE_MESSAGE);
6862
6861
  }
6863
- if (!listing?.listed && !(listing?.nonce && listing?.seller && (0, import_utils13.normalizeSuiAddress)(listing?.seller) === (0, import_utils13.normalizeSuiAddress)(walletAddress))) {
6862
+ if (!listing?.listed && !listing?.nonce) {
6864
6863
  throw new Error(`Listing ${listing?.id} is not listed`);
6865
6864
  }
6866
6865
  const nftType = getNftType({