@gnolang/tm2-js-client 1.1.7 → 1.2.0
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/bin/wallet/wallet.js
CHANGED
|
@@ -183,7 +183,7 @@ var Wallet = /** @class */ (function () {
|
|
|
183
183
|
* encoded message values to be decoded for sorting
|
|
184
184
|
*/
|
|
185
185
|
this.signTransaction = function (tx, decodeTxMessages) { return __awaiter(_this, void 0, void 0, function () {
|
|
186
|
-
var status, chainID, address, accountNumber, accountSequence, publicKey,
|
|
186
|
+
var status, chainID, address, accountNumber, accountSequence, publicKey, signPayload, signBytes, wrappedKey, txSignature;
|
|
187
187
|
var _b;
|
|
188
188
|
return __generator(this, function (_c) {
|
|
189
189
|
switch (_c.label) {
|
|
@@ -211,7 +211,6 @@ var Wallet = /** @class */ (function () {
|
|
|
211
211
|
return [4 /*yield*/, this.signer.getPublicKey()];
|
|
212
212
|
case 5:
|
|
213
213
|
publicKey = _c.sent();
|
|
214
|
-
defaultSigTimestamp = '0001-01-01T00:00:00Z';
|
|
215
214
|
signPayload = {
|
|
216
215
|
chain_id: chainID,
|
|
217
216
|
account_number: accountNumber.toString(10),
|
|
@@ -222,7 +221,6 @@ var Wallet = /** @class */ (function () {
|
|
|
222
221
|
},
|
|
223
222
|
msgs: decodeTxMessages(tx.messages), // unrolled message objects
|
|
224
223
|
memo: tx.memo,
|
|
225
|
-
time: defaultSigTimestamp,
|
|
226
224
|
};
|
|
227
225
|
signBytes = (0, utility_1.stringToUTF8)((0, utility_1.encodeCharacterSet)((0, signdoc_1.sortedJsonStringify)(signPayload)));
|
|
228
226
|
wrappedKey = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnolang/tm2-js-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Tendermint2 JS / TS Client",
|
|
5
5
|
"main": "./bin/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"jest-websocket-mock": "^2.4.0",
|
|
41
41
|
"prettier": "^3.2.2",
|
|
42
42
|
"ts-jest": "^29.1.0",
|
|
43
|
-
"ts-proto": "^1.
|
|
43
|
+
"ts-proto": "^1.172.0",
|
|
44
44
|
"typescript": "^5.4.4"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|