@tradeport/sui-trading-sdk 0.4.21 → 0.4.22

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
@@ -6554,6 +6554,18 @@ var transferNfts = async ({ nftIds, recipientAddress, walletAddress }, context)
6554
6554
  recipientAddress,
6555
6555
  transferPolicies
6556
6556
  };
6557
+ if (!txData.senderKiosk) {
6558
+ tx.transferObjects(
6559
+ [tx.object(txData.nftTokenId)],
6560
+ tx.pure.address(addLeadingZerosAfter0x(recipientAddress))
6561
+ );
6562
+ continue;
6563
+ }
6564
+ const isSenderKioskOriginByte = await isOBKiosk(txData.senderAddress, txData.senderKiosk);
6565
+ if (isSenderKioskOriginByte) {
6566
+ await addOriginByteTransferNftTx(txData);
6567
+ continue;
6568
+ }
6557
6569
  if (txData?.senderKiosk && !hasNativeKioskTransferPolicyRules(txData?.transferPolicies)) {
6558
6570
  await kioskTxWrapper({
6559
6571
  tx: txData?.tx,
@@ -6580,18 +6592,6 @@ var transferNfts = async ({ nftIds, recipientAddress, walletAddress }, context)
6580
6592
  });
6581
6593
  continue;
6582
6594
  }
6583
- if (!txData.senderKiosk) {
6584
- tx.transferObjects(
6585
- [tx.object(txData.nftTokenId)],
6586
- tx.pure.address(addLeadingZerosAfter0x(recipientAddress))
6587
- );
6588
- continue;
6589
- }
6590
- const isSenderKioskOriginByte = await isOBKiosk(txData.senderAddress, txData.senderKiosk);
6591
- if (isSenderKioskOriginByte) {
6592
- await addOriginByteTransferNftTx(txData);
6593
- continue;
6594
- }
6595
6595
  if (await canBeTransferedDirectly(context.suiClient, nft?.collection?.chain_state)) {
6596
6596
  nftsToTransferDirectly.push(nft);
6597
6597
  } else {