@scallop-io/sui-scallop-sdk 0.46.54 → 0.46.55

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
@@ -6758,7 +6758,6 @@ var generateLoyaltyProgramQuickMethod = ({
6758
6758
  const sender = requireSender(txBlock);
6759
6759
  if (!veScaKey)
6760
6760
  throw new Error(`No veScaKey found for user ${sender}`);
6761
- const toTransferObject = [];
6762
6761
  const rewardCoin = txBlock.claimLoyaltyRevenue(veScaKey);
6763
6762
  await builder.utils.mergeSimilarCoins(
6764
6763
  txBlock,
@@ -6766,9 +6765,7 @@ var generateLoyaltyProgramQuickMethod = ({
6766
6765
  coinIds.sca,
6767
6766
  requireSender(txBlock)
6768
6767
  );
6769
- if (toTransferObject.length > 0) {
6770
- txBlock.transferObjects(toTransferObject, sender);
6771
- }
6768
+ txBlock.transferObjects([rewardCoin], sender);
6772
6769
  }
6773
6770
  };
6774
6771
  };