@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 +6 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/helpers/kiosk/kioskTxWrapper.ts +4 -5
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1480,7 +1480,10 @@ var kioskTxWrapper = async ({
|
|
|
1480
1480
|
version: ""
|
|
1481
1481
|
}
|
|
1482
1482
|
});
|
|
1483
|
-
} else if (kiosks.length
|
|
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();
|