@pioneer-platform/pioneer-caip 8.1.87 → 9.0.2

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/data.js +6 -3
  2. package/package.json +1 -1
package/lib/data.js CHANGED
@@ -207,13 +207,16 @@ var thorchainToCaip = function (chain, symbol, ticker, type) {
207
207
  //get networkId
208
208
  // let chainEnumValue = getChainEnumValue(chain)
209
209
  // console.log("chainEnumValue: ", chainEnumValue)
210
- //if chain and symbol are the same, then we have a native token
211
210
  = void 0;
212
211
  //get networkId
213
212
  // let chainEnumValue = getChainEnumValue(chain)
214
213
  // console.log("chainEnumValue: ", chainEnumValue)
215
- //if chain and symbol are the same, then we have a native token
216
- if (chain == symbol) {
214
+ if (chain == "AVAX" && symbol == "WETH") {
215
+ console.log("WETH detected");
216
+ caip = exports.ChainToCaip[chain];
217
+ }
218
+ else if (chain == symbol) {
219
+ //if chain and symbol are the same, then we have a native token
217
220
  caip = exports.ChainToCaip[chain];
218
221
  }
219
222
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-caip",
3
- "version": "8.1.87",
3
+ "version": "9.0.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {