@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.mjs CHANGED
@@ -1417,6 +1417,7 @@ var kioskTxWrapper = async ({
1417
1417
  shouldConvertToPersonalKiosk,
1418
1418
  shouldAssertNftInSharedKiosk,
1419
1419
  shouldAllowNftUnsharedKiosk,
1420
+ shouldSkipFinalize,
1420
1421
  kioskStrategy,
1421
1422
  failIfNoKiosk
1422
1423
  }) => {
@@ -1494,6 +1495,9 @@ var kioskTxWrapper = async ({
1494
1495
  kioskTx.createPersonal(true);
1495
1496
  }
1496
1497
  await runCommands(kioskTx);
1498
+ if (!shouldSkipFinalize) {
1499
+ kioskTx.finalize();
1500
+ }
1497
1501
  };
1498
1502
 
1499
1503
  // src/helpers/originByte/confirmOBTranfer.ts
@@ -4618,6 +4622,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4618
4622
  kioskTx: globalKioskTx,
4619
4623
  shouldConvertToPersonalKiosk: true,
4620
4624
  shouldAllowNftUnsharedKiosk: true,
4625
+ shouldSkipFinalize: true,
4621
4626
  async runCommands(kioskTx) {
4622
4627
  existingKioskTx = kioskTx;
4623
4628
  await addBluemoveClaimAcceptedBidNft({
@@ -4639,6 +4644,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4639
4644
  kioskTx: globalKioskTx,
4640
4645
  shouldConvertToPersonalKiosk: true,
4641
4646
  shouldAllowNftUnsharedKiosk: true,
4647
+ shouldSkipFinalize: true,
4642
4648
  async runCommands(kioskTx) {
4643
4649
  existingKioskTx = kioskTx;
4644
4650
  await addClaimAcceptedBidNftTx({ ...txData, kioskTx });
@@ -4654,6 +4660,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4654
4660
  kioskTx: globalKioskTx,
4655
4661
  shouldConvertToPersonalKiosk: true,
4656
4662
  shouldAssertNftInSharedKiosk: true,
4663
+ shouldSkipFinalize: true,
4657
4664
  async runCommands(kioskTx) {
4658
4665
  existingKioskTx = kioskTx;
4659
4666
  await addClaimAcceptedBidNftWithPurchaseCapTx({ ...txData, kioskTx });
@@ -4685,6 +4692,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4685
4692
  kioskTx: globalKioskTx,
4686
4693
  shouldConvertToPersonalKiosk: true,
4687
4694
  shouldAllowNftUnsharedKiosk: true,
4695
+ shouldSkipFinalize: true,
4688
4696
  async runCommands(kioskTx) {
4689
4697
  existingKioskTx = kioskTx;
4690
4698
  await addClaimTransferredNftTx({ ...txData, kioskTx });
@@ -4701,6 +4709,7 @@ var claimNfts = async ({ nftIds, walletAddress, tx: existingTx }, context, useOl
4701
4709
  kioskTx: globalKioskTx,
4702
4710
  shouldConvertToPersonalKiosk: true,
4703
4711
  shouldAllowNftUnsharedKiosk: true,
4712
+ shouldSkipFinalize: true,
4704
4713
  async runCommands(kioskTx) {
4705
4714
  existingKioskTx = kioskTx;
4706
4715
  await addClaimTransferredNftWithPurchaseCapTx({ ...txData, kioskTx });
@@ -5593,6 +5602,7 @@ async function migrateNftsFromUnsharedToSharedKiosks({ walletAddress, max = 50 }
5593
5602
  kiosk: unsharedNativeKiosk,
5594
5603
  kioskStrategy: "exclude",
5595
5604
  kioskTx: globalKioskTx,
5605
+ shouldSkipFinalize: true,
5596
5606
  shouldConvertToPersonalKiosk: true,
5597
5607
  async runCommands(kioskTx) {
5598
5608
  existingKioskTx = kioskTx;