@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/package.json
CHANGED
|
@@ -110,7 +110,10 @@ export const kioskTxWrapper = async ({
|
|
|
110
110
|
version: '',
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
|
-
} else if (kiosks.length
|
|
113
|
+
} else if (shouldConvertToPersonalKiosk || kiosks.length === 0) {
|
|
114
|
+
kioskTx = new KioskTransaction({ transactionBlock: tx as any, kioskClient });
|
|
115
|
+
kioskTx.createPersonal(true);
|
|
116
|
+
} else {
|
|
114
117
|
const kioskCapId = (
|
|
115
118
|
await gqlChainRequest({
|
|
116
119
|
chain: 'sui',
|
|
@@ -130,10 +133,6 @@ export const kioskTxWrapper = async ({
|
|
|
130
133
|
version: '',
|
|
131
134
|
},
|
|
132
135
|
});
|
|
133
|
-
} else {
|
|
134
|
-
// creating new personal kiosk
|
|
135
|
-
kioskTx = new KioskTransaction({ transactionBlock: tx as any, kioskClient });
|
|
136
|
-
kioskTx.createPersonal(true);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
await runCommands(kioskTx);
|