@ferra-labs/damm 1.0.4 → 1.0.5

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
@@ -5739,8 +5739,8 @@ var _PositionModule = class _PositionModule {
5739
5739
  "InvalidSendAddress" /* InvalidSendAddress */
5740
5740
  );
5741
5741
  }
5742
- asUintN2(BigInt(params.tick_lower)).toString();
5743
- asUintN2(BigInt(params.tick_upper)).toString();
5742
+ const tick_lower = asUintN2(BigInt(params.tick_lower)).toString();
5743
+ const tick_upper = asUintN2(BigInt(params.tick_upper)).toString();
5744
5744
  const typeArguments = [params.coinTypeA, params.coinTypeB];
5745
5745
  tx = tx || new Transaction();
5746
5746
  const needOpenPosition = !isValidSuiObjectId(params.pos_id);
@@ -5777,6 +5777,8 @@ var _PositionModule = class _PositionModule {
5777
5777
  primaryCoinBInputs.targetCoin,
5778
5778
  tx.pure.u64(params.max_amount_a),
5779
5779
  tx.pure.u64(params.max_amount_b),
5780
+ tx.pure.u32(Number(tick_lower)),
5781
+ tx.pure.u32(Number(tick_upper)),
5780
5782
  tx.pure.u128(params.delta_liquidity),
5781
5783
  tx.object(CLOCK_ADDRESS)
5782
5784
  ]