@pioneer-platform/chainflip-client 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -138,12 +138,13 @@ const get_quote = function (quote) {
138
138
  "destChain": longNameBuy,
139
139
  "srcAsset": chainSell,
140
140
  "destAsset": chainBuy,
141
- "amount": responseQuote.data.egressAmount,
141
+ "amount": amountToQuote.toString(),
142
142
  "quote": responseQuote.data,
143
143
  "destAddress": quote.recipientAddress,
144
144
  }
145
145
  }
146
146
  };
147
+ log.info("data good: ", data);
147
148
  const headers = {
148
149
  'Accept': '*/*',
149
150
  'Accept-Encoding': 'gzip, deflate, br, zstd',
@@ -183,6 +184,7 @@ const get_quote = function (quote) {
183
184
  }
184
185
  catch (e) {
185
186
  console.error(tag, "e: ", e);
187
+ console.error(tag, "e: ", JSON.stringify(e));
186
188
  throw e;
187
189
  }
188
190
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/chainflip-client",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "dependencies": {