@firmachain/firma-js 0.2.29 → 0.2.30

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.
@@ -87,8 +87,9 @@ var FirmaUtil = /** @class */ (function () {
87
87
  return Number.parseInt(newBig);
88
88
  };
89
89
  FirmaUtil.getTokenStringFromUToken = function (uTokenAmount, decimal) {
90
+ var fixedUTokenAmount = Math.floor(uTokenAmount);
90
91
  var decimalMutiplyer = Math.pow(10, decimal);
91
- return (uTokenAmount / decimalMutiplyer).toString();
92
+ return (fixedUTokenAmount / decimalMutiplyer).toString();
92
93
  };
93
94
  FirmaUtil.getUFCTStringFromFCTStr = function (fctAmount) {
94
95
  return this.getUTokenStringFromTokenStr(fctAmount, this.FctDecimal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firmachain/firma-js",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "description": "The Official FirmaChain Javascript SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",