@firmachain/firma-js 0.2.41 → 0.2.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.
@@ -376,10 +376,10 @@ var FirmaUtil = /** @class */ (function () {
376
376
  ;
377
377
  FirmaUtil.parseSignDocValues = function (signDocString) {
378
378
  var signDoc = JSON.parse(signDocString);
379
- return __assign(__assign({}, signDoc), { bodyBytes: (0, encoding_2.fromHex)(signDoc.bodyBytes), authInfoBytes: (0, encoding_2.fromHex)(signDoc.authInfoBytes), accountNumber: new long_1.default(signDoc.accountNumber) });
379
+ return __assign(__assign({}, signDoc), { bodyBytes: (0, encoding_2.fromHex)(signDoc.bodyBytes), authInfoBytes: (0, encoding_2.fromHex)(signDoc.authInfoBytes), accountNumber: long_1.default.fromString(signDoc.accountNumber) });
380
380
  };
381
381
  FirmaUtil.stringifySignDocValues = function (signDoc) {
382
- return JSON.stringify(__assign(__assign({}, signDoc), { bodyBytes: (0, encoding_2.toHex)(signDoc.bodyBytes), authInfoBytes: (0, encoding_2.toHex)(signDoc.authInfoBytes), accountNumber: signDoc.accountNumber.toString(16) }));
382
+ return JSON.stringify(__assign(__assign({}, signDoc), { bodyBytes: (0, encoding_2.toHex)(signDoc.bodyBytes), authInfoBytes: (0, encoding_2.toHex)(signDoc.authInfoBytes), accountNumber: signDoc.accountNumber.toString() }));
383
383
  };
384
384
  FirmaUtil.makeSignDoc = function (signerAddress, pubkey, messages, txMisc) {
385
385
  if (txMisc === void 0) { txMisc = exports.DefaultTxMisc; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firmachain/firma-js",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "description": "The Official FirmaChain Javascript SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",