@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 +6 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/methods/relistNft/relistNft.ts +14 -0
package/CHANGELOG.md
CHANGED
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,
|