@tradeport/sui-trading-sdk 0.4.12 → 0.4.14
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 +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/helpers/hasTransferPolicyRules.ts +2 -4
- package/src/methods/migrateNftsFromUnsharedToSharedKiosks/migrateNftsFromUnsharedToSharedKiosks.ts +2 -2
- package/src/tests/SuiWallet.ts +13 -7
package/dist/index.js
CHANGED
|
@@ -1319,10 +1319,7 @@ var hasPersonalKioskRule = (transferPolicies) => getNativeKioskTransferPolicies(
|
|
|
1319
1319
|
);
|
|
1320
1320
|
|
|
1321
1321
|
// src/helpers/hasTransferPolicyRules.ts
|
|
1322
|
-
var hasNativeKioskTransferPolicyRules = (transferPolicies) =>
|
|
1323
|
-
const nativeKioskTransferPolicies = getNativeKioskTransferPolicies(transferPolicies);
|
|
1324
|
-
return nativeKioskTransferPolicies?.some((policy) => policy?.rules?.length > 0);
|
|
1325
|
-
};
|
|
1322
|
+
var hasNativeKioskTransferPolicyRules = (transferPolicies) => getNativeKioskTransferPolicies(transferPolicies)?.length > 0;
|
|
1326
1323
|
|
|
1327
1324
|
// src/helpers/isSIngleBid.ts
|
|
1328
1325
|
var isSingleBid = (bidType) => {
|
|
@@ -5612,8 +5609,8 @@ async function migrateNftsFromUnsharedToSharedKiosks({ walletAddress, max = 50 }
|
|
|
5612
5609
|
allNftTypes.map(async (type) => getNativeKioskTransferPoliciesByNftType(type))
|
|
5613
5610
|
);
|
|
5614
5611
|
const mappedTrasferPolicies = {};
|
|
5615
|
-
transferPolicies.forEach((tp
|
|
5616
|
-
mappedTrasferPolicies[tp?.[
|
|
5612
|
+
transferPolicies.forEach((tp) => {
|
|
5613
|
+
mappedTrasferPolicies[tp?.[0]?.type] = tp;
|
|
5617
5614
|
});
|
|
5618
5615
|
let globalKioskTx;
|
|
5619
5616
|
for (const unsharedNativeKiosk of unsharedNativeKiosks) {
|