@magmaprotocol/magma-clmm-sdk 0.5.126 → 0.5.127

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
@@ -11598,7 +11598,12 @@ var AlmmModule = class {
11598
11598
  }
11599
11599
  const fields = getObjectFields(object);
11600
11600
  const ownerWarp = getObjectOwner(object);
11601
- const bin_real_ids = new Array(fields.bin_count).map((_, index) => (0, import_calc_almm3.get_real_id)(fields.bin_start + index));
11601
+ let bin_real_ids = [];
11602
+ if (fields.bin_count) {
11603
+ bin_real_ids = new Array(fields.bin_count).fill(1).map((_, index) => (0, import_calc_almm3.get_real_id)(fields.bin_start + index));
11604
+ } else {
11605
+ bin_real_ids = fields.bin_ids.map((id) => (0, import_calc_almm3.get_real_id)(id));
11606
+ }
11602
11607
  return {
11603
11608
  pos_object_id: fields.id.id,
11604
11609
  owner: ownerWarp.AddressOwner,