cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
https://cosmos.github.io/cosmjs/
Apache License 2.0
655 stars 344 forks source link

fix rpc client node info check #1591

Closed jhernandezb closed 5 months ago

jhernandezb commented 5 months ago

channels field from the node info is specifically used by cometbft p2p system, but in cases like rollkit where that is not used this can be an empty string.

This changes the assert from not empty to only assert is string that was preventing stargate client to initialize correctly. see example: https://rpc.rosm.rollkit.dev/status