@scallop-io/sui-scallop-sdk 0.46.34 → 0.46.35
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 +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/builders/referralBuilder.ts +9 -9
package/dist/index.mjs
CHANGED
|
@@ -5588,16 +5588,17 @@ var generateReferralQuickMethod = ({
|
|
|
5588
5588
|
const rewardCoin = txBlock.claimReferralRevenue(veScaKey, coinName);
|
|
5589
5589
|
objToTransfer.push(rewardCoin);
|
|
5590
5590
|
} else {
|
|
5591
|
-
const coins = await builder.suiKit.suiInteractor.selectCoins(
|
|
5592
|
-
sender,
|
|
5593
|
-
Infinity,
|
|
5594
|
-
builder.utils.parseCoinType(coinName)
|
|
5595
|
-
);
|
|
5596
5591
|
const rewardCoin = txBlock.claimReferralRevenue(veScaKey, coinName);
|
|
5597
|
-
|
|
5592
|
+
try {
|
|
5593
|
+
const coins = await builder.suiKit.suiInteractor.selectCoins(
|
|
5594
|
+
sender,
|
|
5595
|
+
Infinity,
|
|
5596
|
+
builder.utils.parseCoinType(coinName)
|
|
5597
|
+
);
|
|
5598
5598
|
txBlock.mergeCoins(rewardCoin, coins);
|
|
5599
|
+
} finally {
|
|
5600
|
+
objToTransfer.push(rewardCoin);
|
|
5599
5601
|
}
|
|
5600
|
-
objToTransfer.push(rewardCoin);
|
|
5601
5602
|
}
|
|
5602
5603
|
}
|
|
5603
5604
|
if (objToTransfer.length > 0) {
|