File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/tendermint-rpc/src Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and this project adheres to
66
77## [ Unreleased]
88
9+ ### Fixed
10+
11+ - @cosmjs/tendermint-rpc : fix node info check to accept empty string on channels
12+ field ([ #1591 ] )
13+
914## [ 0.32.3] - 2024-03-08
1015
1116### Changed
Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments