@pioneer-platform/maya-network 8.3.4 → 8.3.6

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 +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -77,7 +77,7 @@ axiosRetry(axios, {
77
77
  var log = require('@pioneer-platform/loggerdog')();
78
78
  var URL_THORNODE = 'https://mayanode.mayachain.info';
79
79
  var URL_MIDGARD = 'https://midgard.mayachain.info/v2';
80
- var BASE_THOR = 100000000;
80
+ var BASE_THOR = 10000000000;
81
81
  /**********************************
82
82
  // Module
83
83
  //**********************************/
@@ -553,7 +553,7 @@ var get_balance = function (address) {
553
553
  if ((_a = accountInfo.data) === null || _a === void 0 ? void 0 : _a.result) {
554
554
  for (i = 0; i < accountInfo.data.result.length; i++) {
555
555
  entry = accountInfo.data.result[i];
556
- if (entry.denom === 'rune') {
556
+ if (entry.denom === 'cacao') {
557
557
  output = entry.amount;
558
558
  }
559
559
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/maya-network",
3
- "version": "8.3.4",
3
+ "version": "8.3.6",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {