@pioneer-platform/pioneer-balance 8.3.39 → 8.3.41
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 +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -241,8 +241,8 @@ 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 =
|
244
|
+
// Maya network already converts the amount, so use the decimal value directly
|
245
|
+
asset.balance = mayaBalance.amount.toString();
|
246
246
|
console.log(tag, 'MAYA token balance found: ', asset.balance);
|
247
247
|
}
|
248
248
|
else {
|