@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.
- package/dist/sdk/FirmaUtil.js +2 -2
- package/package.json +1 -1
package/dist/sdk/FirmaUtil.js
CHANGED
|
@@ -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:
|
|
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(
|
|
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; }
|