aftermath-ts-sdk 0.0.135 → 0.0.136

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.
@@ -153,13 +153,13 @@ class PoolsApiHelpers {
153
153
  this.fetchCreatePoolTx = (inputs) => __awaiter(this, void 0, void 0, function* () {
154
154
  const { tx, lpCoinType, createPoolCapId, coinsInfo, lpCoinMetadata } = inputs;
155
155
  const poolSize = coinsInfo.length;
156
- const coinTypes = coinsInfo.map((coin) => coin.coinType);
157
- const lpCoinDescription = yield this.createLpCoinMetadataDescription(Object.assign(Object.assign({}, inputs), { coinTypes }));
158
156
  coinsInfo.sort((a, b) => {
159
157
  const coinA = a.coinType.toUpperCase();
160
158
  const coinB = b.coinType.toUpperCase();
161
159
  return coinA < coinB ? -1 : coinA > coinB ? 1 : 0;
162
160
  });
161
+ const coinTypes = coinsInfo.map((coin) => coin.coinType);
162
+ const lpCoinDescription = yield this.createLpCoinMetadataDescription(Object.assign(Object.assign({}, inputs), { coinTypes }));
163
163
  return tx.add({
164
164
  kind: "MoveCall",
165
165
  target: utils_1.Helpers.transactions.createTransactionTarget(this.addresses.pools.packages.ammInterface, PoolsApiHelpers.constants.moduleNames.interface, `create_pool_${poolSize}_coins`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aftermath-ts-sdk",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "description": "Aftermath TypeScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",