@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.mjs CHANGED
@@ -11385,7 +11385,12 @@ var AlmmModule = class {
11385
11385
  }
11386
11386
  const fields = getObjectFields(object);
11387
11387
  const ownerWarp = getObjectOwner(object);
11388
- const bin_real_ids = new Array(fields.bin_count).map((_, index) => get_real_id(fields.bin_start + index));
11388
+ let bin_real_ids = [];
11389
+ if (fields.bin_count) {
11390
+ bin_real_ids = new Array(fields.bin_count).fill(1).map((_, index) => get_real_id(fields.bin_start + index));
11391
+ } else {
11392
+ bin_real_ids = fields.bin_ids.map((id) => get_real_id(id));
11393
+ }
11389
11394
  return {
11390
11395
  pos_object_id: fields.id.id,
11391
11396
  owner: ownerWarp.AddressOwner,