@tradeport/sui-trading-sdk 0.1.20 → 0.1.21

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.21
4
+
5
+ ### Patch Changes
6
+
7
+ - eda5d9a: Fixed origin byte relists
8
+
3
9
  ## 0.1.20
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3219,6 +3219,14 @@ async function relistNft({ tx, nft, listPrice, sharedObjects, walletAddress }) {
3219
3219
  if ((!isOriginByteTx(txData?.sharedObjects) || ORIGIN_BYTE_NFT_TYPES_MISSING_ORDERBOOK?.includes(normalizedNftType(txData?.nftType))) && txData?.listingNonce && await isNonKioskListing(txData?.listingNonce)) {
3220
3220
  addTradePortRelistTx({ ...txData, listPrice });
3221
3221
  } else {
3222
+ if (txData?.listingNonce && isOriginByteTx(txData?.sharedObjects) && !ORIGIN_BYTE_NFT_TYPES_MISSING_ORDERBOOK?.includes(normalizedNftType(txData?.nftType))) {
3223
+ await addTradePortUnlistTxHandler(txData);
3224
+ await addTradePortListTxHandler({
3225
+ ...txData,
3226
+ listPrice
3227
+ });
3228
+ return;
3229
+ }
3222
3230
  return kioskTxWrapper({
3223
3231
  tx: txData?.tx,
3224
3232
  kioskOwner: txData?.seller,