@pioneer-platform/pioneer-balance 8.3.40 → 8.3.42
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.
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -241,9 +241,9 @@ var Balance = /** @class */ (function () {
|
|
241
241
|
console.log(tag, 'mayachain.getBalances result: ', result);
|
242
242
|
mayaBalance = result.find(function (balance) { return balance.denom === 'maya'; });
|
243
243
|
if (mayaBalance) {
|
244
|
-
//
|
245
|
-
asset.balance =
|
246
|
-
console.log(tag, 'MAYA token balance found: ', asset.balance);
|
244
|
+
// Maya network already converts the amount, so use the decimal value directly
|
245
|
+
asset.balance = mayaBalance.amount ? mayaBalance.amount.toString() : "0";
|
246
|
+
console.log(tag, 'MAYA token balance found: ', asset.balance, 'from object:', mayaBalance);
|
247
247
|
}
|
248
248
|
else {
|
249
249
|
asset.balance = "0";
|