@scallop-io/sui-scallop-sdk 0.46.45 → 0.46.46

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
@@ -7306,12 +7306,12 @@ var ScallopClient = class {
7306
7306
  const txBlock = this.builder.createTxBlock();
7307
7307
  const sender = walletAddress || this.walletAddress;
7308
7308
  txBlock.setSender(sender);
7309
- const marketCoins2 = await txBlock.unstakeQuick(
7309
+ const marketCoin = await txBlock.unstakeQuick(
7310
7310
  amount,
7311
7311
  stakeMarketCoinName,
7312
7312
  stakeAccountId
7313
7313
  );
7314
- txBlock.transferObjects(marketCoins2, sender);
7314
+ txBlock.transferObjects([marketCoin], sender);
7315
7315
  if (sign) {
7316
7316
  return await this.suiKit.signAndSendTxn(
7317
7317
  txBlock
@@ -7324,18 +7324,14 @@ var ScallopClient = class {
7324
7324
  const txBlock = this.builder.createTxBlock();
7325
7325
  const sender = walletAddress || this.walletAddress;
7326
7326
  txBlock.setSender(sender);
7327
- const stakeMarketCoins2 = await txBlock.unstakeQuick(
7327
+ const stakeMarketCoin = await txBlock.unstakeQuick(
7328
7328
  amount,
7329
7329
  stakeMarketCoinName,
7330
7330
  stakeAccountId
7331
7331
  );
7332
- const coins = [];
7333
- for (const stakeMarketCoin of stakeMarketCoins2) {
7334
- const stakeCoinName = this.utils.parseCoinName(stakeMarketCoinName);
7335
- const coin = txBlock.withdraw(stakeMarketCoin, stakeCoinName);
7336
- coins.push(coin);
7337
- }
7338
- txBlock.transferObjects(coins, sender);
7332
+ const stakeCoinName = this.utils.parseCoinName(stakeMarketCoinName);
7333
+ const coin = txBlock.withdraw(stakeMarketCoin, stakeCoinName);
7334
+ txBlock.transferObjects([coin], sender);
7339
7335
  if (sign) {
7340
7336
  return await this.suiKit.signAndSendTxn(
7341
7337
  txBlock