1
1
diff --git a/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js
2
- index 29ec063..56d44e3 100644
2
+ index 29ec063..28a5c02 100644
3
3
--- a/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js
4
4
+++ b/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js
5
5
@@ -72,7 +72,7 @@ function decodePubkey(data) {
@@ -24,57 +24,23 @@ index 29ec063..56d44e3 100644
24
24
+ return {
25
25
+ algorithm: "bn254",
26
26
+ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
27
- + };
28
- default:
29
- throw new Error(`unknown pubkey type: ${data.type}`);
30
- }
31
- diff --git a/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js
32
- index 9e50f2b..161629f 100644
33
- --- a/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js
34
- +++ b/node_modules/@cosmjs/tendermint-rpc/build/tendermint34/adaptor/responses.js
35
- @@ -39,11 +39,17 @@ function decodeAbciQuery(data) {
36
- };
37
- }
38
- function decodeAttribute(attribute) {
39
- - return {
40
- - key: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(attribute.key)),
41
- - value: (0, encoding_1.fromBase64)((0, encodings_1.assertString)(attribute.value ?? "")),
42
- - };
43
- + try {
44
- + return {
45
- + key: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(attribute.key ?? "")),
46
- + value: (0, encoding_1.fromBase64)((0, encodings_1.assertString)(attribute.value ?? "")),
47
- + };
48
- + }
49
- + catch {
50
- + return { key: "", value: "" };
51
- + }
52
- }
53
- +
54
- function decodeAttributes(attributes) {
55
- return (0, encodings_1.assertArray)(attributes).map(decodeAttribute);
56
- }
57
- @@ -91,6 +97,16 @@ function decodePubkey(data) {
58
- algorithm: "secp256k1",
59
- data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
60
- };
61
- + case "tendermint/PubKeyBn254":
62
- + return {
63
- + algorithm: "bn254",
64
- + data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
65
- + };
66
- + case "cometbft/PubKeyBn254":
67
- + return {
68
- + algorithm: "bn254",
69
- + data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
70
27
+ };
71
28
default:
72
29
throw new Error(`unknown pubkey type: ${data.type}`);
73
30
}
74
31
diff --git a/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js
75
- index 19df9de..09ca2ed 100644
32
+ index 19df9de..0015044 100644
76
33
--- a/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js
77
34
+++ b/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js
35
+ @@ -72,7 +72,7 @@ function decodePubkey(data) {
36
+ if ("Sum" in data) {
37
+ // we don't need to check type because we're checking algorithm
38
+ const [[algorithm, value]] = Object.entries(data.Sum.value);
39
+ - (0, utils_1.assert)(algorithm === "ed25519" || algorithm === "secp256k1", `unknown pubkey type: ${algorithm}`);
40
+ + (0, utils_1.assert)(algorithm === "ed25519" || algorithm === "secp256k1" || algorithm === "bn254", `unknown pubkey type: ${algorithm}`);
41
+ return {
42
+ algorithm,
43
+ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)),
78
44
@@ -91,6 +91,16 @@ function decodePubkey(data) {
79
45
algorithm: "secp256k1",
80
46
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
@@ -93,7 +59,7 @@ index 19df9de..09ca2ed 100644
93
59
throw new Error(`unknown pubkey type: ${data.type}`);
94
60
}
95
61
diff --git a/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js b/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js
96
- index 257b104..6626da9 100644
62
+ index 257b104..dbf2240 100644
97
63
--- a/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js
98
64
+++ b/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js
99
65
@@ -28,7 +28,7 @@ async function connectComet(endpoint) {
0 commit comments