@tradeport/sui-trading-sdk 0.4.30 → 0.4.31

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
@@ -2460,6 +2460,12 @@ async function addSingleBidAcceptNftBidTx(txData) {
2460
2460
  kiosk: txData?.sellerKiosk,
2461
2461
  sharedKioskState,
2462
2462
  async runCommands(kioskTx) {
2463
+ if (!txData?.sellerKiosk) {
2464
+ kioskTx.place({
2465
+ item: txData?.nftTokenId,
2466
+ itemType: txData?.nftType
2467
+ });
2468
+ }
2463
2469
  const [transferRequest] = tx.moveCall({
2464
2470
  target: `${TRADEPORT_MULTI_BID_PACKAGE}::tradeport_biddings::accept_bid_with_transfer_policy`,
2465
2471
  typeArguments: [nftType],
@@ -2533,9 +2539,15 @@ async function addTradePortAcceptNftBidTxHandler(txData) {
2533
2539
  kiosk: txData?.sellerKiosk,
2534
2540
  shouldConvertToPersonalKiosk: Boolean(hasPersonalKioskRule(txData?.transferPolicies)),
2535
2541
  shouldAssertNftInSharedKiosk: true,
2536
- failIfNoKiosk: true,
2542
+ failIfNoKiosk: Boolean(txData?.sellerKiosk),
2537
2543
  sharedKioskState: txData?.sharedKioskState,
2538
2544
  async runCommands(kioskTx) {
2545
+ if (hasNativeKioskTransferPolicyRules(txData?.transferPolicies) && !txData?.sellerKiosk) {
2546
+ kioskTx.place({
2547
+ item: txData?.nftTokenId,
2548
+ itemType: txData?.nftType
2549
+ });
2550
+ }
2539
2551
  await addTradeportKioskAcceptNftBidTx({
2540
2552
  ...txData,
2541
2553
  kioskTx,
@@ -3027,6 +3039,12 @@ async function addTradePortAcceptCollectionBidTxHandler(txData) {
3027
3039
  failIfNoKiosk: Boolean(txData?.sellerKiosk),
3028
3040
  sharedKioskState: txData?.sharedKioskState,
3029
3041
  async runCommands(kioskTx) {
3042
+ if (hasNativeKioskTransferPolicyRules(txData?.transferPolicies) && !txData?.sellerKiosk) {
3043
+ kioskTx.place({
3044
+ item: txData?.nftTokenId,
3045
+ itemType: txData?.nftType
3046
+ });
3047
+ }
3030
3048
  await addTradeportKioskAcceptCollectionBidTx({
3031
3049
  ...txData,
3032
3050
  kioskTx,