@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/dist/index.mjs
CHANGED
|
@@ -1454,7 +1454,10 @@ var kioskTxWrapper = async ({
|
|
|
1454
1454
|
version: ""
|
|
1455
1455
|
}
|
|
1456
1456
|
});
|
|
1457
|
-
} else if (kiosks.length
|
|
1457
|
+
} else if (shouldConvertToPersonalKiosk || kiosks.length === 0) {
|
|
1458
|
+
kioskTx = new KioskTransaction({ transactionBlock: tx, kioskClient });
|
|
1459
|
+
kioskTx.createPersonal(true);
|
|
1460
|
+
} else {
|
|
1458
1461
|
const kioskCapId = (await gqlChainRequest({
|
|
1459
1462
|
chain: "sui",
|
|
1460
1463
|
query: fetchOwnerCapByKiosk,
|
|
@@ -1471,9 +1474,6 @@ var kioskTxWrapper = async ({
|
|
|
1471
1474
|
version: ""
|
|
1472
1475
|
}
|
|
1473
1476
|
});
|
|
1474
|
-
} else {
|
|
1475
|
-
kioskTx = new KioskTransaction({ transactionBlock: tx, kioskClient });
|
|
1476
|
-
kioskTx.createPersonal(true);
|
|
1477
1477
|
}
|
|
1478
1478
|
await runCommands(kioskTx);
|
|
1479
1479
|
kioskTx.finalize();
|