@magmaprotocol/magma-clmm-sdk 0.5.10 → 0.5.12

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
@@ -7257,7 +7257,7 @@ var LockModule = class {
7257
7257
  const typeArguments = [magma_token, params.coinType];
7258
7258
  const allCoinAsset = await this._sdk.getOwnerCoinAssets(this._sdk.senderAddress);
7259
7259
  const coinInput = TransactionUtil.buildCoinForAmount(tx, allCoinAsset, BigInt(params.amount), params.coinType, false, true);
7260
- const args = [tx.object(voter_id), coinInput.targetCoin, tx.object(CLOCK_ADDRESS)];
7260
+ const args = [tx.object(voter_id), tx.object(params.poolId), coinInput.targetCoin, tx.object(CLOCK_ADDRESS)];
7261
7261
  tx.moveCall({
7262
7262
  target: `${integrate.published_at}::${Voter}::add_bribe_reward`,
7263
7263
  typeArguments,
@@ -9135,7 +9135,7 @@ var GaugeModule = class {
9135
9135
  }
9136
9136
  const type = getObjectType(item);
9137
9137
  const poolTypeFields = extractStructTagFromType(type);
9138
- poolCoins.set(poolTypeFields.address, poolTypeFields.type_arguments);
9138
+ poolCoins.set(item.data.objectId, poolTypeFields.type_arguments);
9139
9139
  });
9140
9140
  return poolCoins;
9141
9141
  }