Add workaround for missing Tendermint version

This commit is contained in:
Simon Warta 2020-11-17 16:27:27 +01:00
parent d7fdf05aac
commit ae1f2e28a0
2 changed files with 7 additions and 2 deletions

View File

@ -5,7 +5,10 @@ import { Adaptor } from "./adaptor";
import { v0_33 } from "./v0-33";
const hashes = {
v0_34: ["ca2c9df"],
v0_34: [
"ca2c9df", // v0.34.0-rc6
"", // See https://github.com/cosmos/cosmos-sdk/issues/7963
],
};
/**

View File

@ -502,7 +502,9 @@ function decodeNodeInfo(data: RpcNodeInfo): responses.NodeInfo {
id: fromHex(assertNotEmpty(data.id)),
listenAddr: assertNotEmpty(data.listen_addr),
network: assertNotEmpty(data.network),
version: assertNotEmpty(data.version),
// TODO: Reactivate check when https://github.com/cosmos/cosmos-sdk/issues/7963 is resolved
// version: assertNotEmpty(data.version),
version: data.version,
channels: assertNotEmpty(data.channels),
moniker: assertNotEmpty(data.moniker),
other: dictionaryToStringMap(data.other),