@tradeport/sui-trading-sdk 0.4.7 → 0.4.8

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 CHANGED
@@ -1443,6 +1443,7 @@ var kioskTxWrapper = async ({
1443
1443
  shouldConvertToPersonalKiosk,
1444
1444
  shouldAssertNftInSharedKiosk,
1445
1445
  shouldAllowNftUnsharedKiosk,
1446
+ shouldSkipFinalize,
1446
1447
  kioskStrategy,
1447
1448
  failIfNoKiosk
1448
1449
  }) => {
@@ -1520,6 +1521,9 @@ var kioskTxWrapper = async ({
1520
1521
  kioskTx.createPersonal(true);
1521
1522
  }
1522
1523
  await runCommands(kioskTx);
1524
+ if (!shouldSkipFinalize) {
1525
+ kioskTx.finalize();
1526
+ }
1523
1527
  };
1524
1528
 
1525
1529
  // src/helpers/originByte/confirmOBTranfer.ts
@@ -4642,6 +4646,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4642
4646
  kioskTx: globalKioskTx,
4643
4647
  shouldConvertToPersonalKiosk: true,
4644
4648
  shouldAllowNftUnsharedKiosk: true,
4649
+ shouldSkipFinalize: true,
4645
4650
  async runCommands(kioskTx) {
4646
4651
  existingKioskTx = kioskTx;
4647
4652
  await addBluemoveClaimAcceptedBidNft({
@@ -4663,6 +4668,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4663
4668
  kioskTx: globalKioskTx,
4664
4669
  shouldConvertToPersonalKiosk: true,
4665
4670
  shouldAllowNftUnsharedKiosk: true,
4671
+ shouldSkipFinalize: true,
4666
4672
  async runCommands(kioskTx) {
4667
4673
  existingKioskTx = kioskTx;
4668
4674
  await addClaimAcceptedBidNftTx({ ...txData, kioskTx });
@@ -4678,6 +4684,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4678
4684
  kioskTx: globalKioskTx,
4679
4685
  shouldConvertToPersonalKiosk: true,
4680
4686
  shouldAssertNftInSharedKiosk: true,
4687
+ shouldSkipFinalize: true,
4681
4688
  async runCommands(kioskTx) {
4682
4689
  existingKioskTx = kioskTx;
4683
4690
  await addClaimAcceptedBidNftWithPurchaseCapTx({ ...txData, kioskTx });
@@ -4709,6 +4716,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4709
4716
  kioskTx: globalKioskTx,
4710
4717
  shouldConvertToPersonalKiosk: true,
4711
4718
  shouldAllowNftUnsharedKiosk: true,
4719
+ shouldSkipFinalize: true,
4712
4720
  async runCommands(kioskTx) {
4713
4721
  existingKioskTx = kioskTx;
4714
4722
  await addClaimTransferredNftTx({ ...txData, kioskTx });
@@ -4725,6 +4733,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4725
4733
  kioskTx: globalKioskTx,
4726
4734
  shouldConvertToPersonalKiosk: true,
4727
4735
  shouldAllowNftUnsharedKiosk: true,
4736
+ shouldSkipFinalize: true,
4728
4737
  async runCommands(kioskTx) {
4729
4738
  existingKioskTx = kioskTx;
4730
4739
  await addClaimTransferredNftWithPurchaseCapTx({ ...txData, kioskTx });
@@ -5617,6 +5626,7 @@ async function migrateNftsFromUnsharedToSharedKiosks({ walletAddress, max = 50 }
5617
5626
  kiosk: unsharedNativeKiosk,
5618
5627
  kioskStrategy: "exclude",
5619
5628
  kioskTx: globalKioskTx,
5629
+ shouldSkipFinalize: true,
5620
5630
  shouldConvertToPersonalKiosk: true,
5621
5631
  async runCommands(kioskTx) {
5622
5632
  existingKioskTx = kioskTx;