@tradeport/sui-trading-sdk 0.3.8 → 0.3.9

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.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - f4e68de: Added personal kiosk creation when required
8
+
3
9
  ## 0.3.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1480,7 +1480,10 @@ var kioskTxWrapper = async ({
1480
1480
  version: ""
1481
1481
  }
1482
1482
  });
1483
- } else if (kiosks.length > 0) {
1483
+ } else if (shouldConvertToPersonalKiosk || kiosks.length === 0) {
1484
+ kioskTx = new import_kiosk3.KioskTransaction({ transactionBlock: tx, kioskClient });
1485
+ kioskTx.createPersonal(true);
1486
+ } else {
1484
1487
  const kioskCapId = (await gqlChainRequest({
1485
1488
  chain: "sui",
1486
1489
  query: fetchOwnerCapByKiosk,
@@ -1497,9 +1500,6 @@ var kioskTxWrapper = async ({
1497
1500
  version: ""
1498
1501
  }
1499
1502
  });
1500
- } else {
1501
- kioskTx = new import_kiosk3.KioskTransaction({ transactionBlock: tx, kioskClient });
1502
- kioskTx.createPersonal(true);
1503
1503
  }
1504
1504
  await runCommands(kioskTx);
1505
1505
  kioskTx.finalize();