Skip to content

Commit 435016e

Browse files
committed
fix rpc client node info check
1 parent 917bd4c commit 435016e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tendermint-rpc/src/comet38/adaptor/responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ function decodeNodeInfo(data: RpcNodeInfo): responses.NodeInfo {
599599
listenAddr: assertNotEmpty(data.listen_addr),
600600
network: assertNotEmpty(data.network),
601601
version: assertString(data.version), // Can be empty (https://github.com/cosmos/cosmos-sdk/issues/7963)
602-
channels: assertNotEmpty(data.channels),
602+
channels: assertString(data.channels), // can be empty
603603
moniker: assertNotEmpty(data.moniker),
604604
other: dictionaryToStringMap(data.other),
605605
protocolVersion: {

packages/tendermint-rpc/src/tendermint37/adaptor/responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ function decodeNodeInfo(data: RpcNodeInfo): responses.NodeInfo {
597597
listenAddr: assertNotEmpty(data.listen_addr),
598598
network: assertNotEmpty(data.network),
599599
version: assertString(data.version), // Can be empty (https://github.com/cosmos/cosmos-sdk/issues/7963)
600-
channels: assertNotEmpty(data.channels),
600+
channels: assertString(data.channels), // can be empty
601601
moniker: assertNotEmpty(data.moniker),
602602
other: dictionaryToStringMap(data.other),
603603
protocolVersion: {

0 commit comments

Comments
 (0)