@pioneer-platform/pioneer-caip 9.2.20 → 9.2.21

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 +3 -1
  2. package/package.json +1 -1
package/lib/data.js CHANGED
@@ -372,7 +372,8 @@ var caipToThorchain = function (caip, ticker) {
372
372
  }
373
373
  else {
374
374
  // Handling native tokens
375
- return chain + "." + chain;
375
+ // return chain + "." + chain;
376
+ return ticker ? "".concat(chain, ".").concat(ticker) : "".concat(chain, ".").concat(chain);
376
377
  }
377
378
  }
378
379
  catch (e) {
@@ -385,6 +386,7 @@ var caipToRango = function (caip, ticker) {
385
386
  try {
386
387
  var _a = caip.split('/'), networkId = _a[0], tokenInfo = _a[1];
387
388
  var rangoName = (0, exports.NetworkIdToRangoName)(networkId);
389
+ // Using the ticker directly as the symbol
388
390
  var symbol = ticker;
389
391
  var address = null; // Default to null
390
392
  // For ERC20 tokens, the contract address is included in the CAIP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-caip",
3
- "version": "9.2.20",
3
+ "version": "9.2.21",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {