add version compatible implementation

This commit is contained in:
liangping
2023-06-19 21:33:50 +08:00
parent f69546d44f
commit 32b37f16c7
8 changed files with 115 additions and 18 deletions
+3
View File
@@ -149,6 +149,9 @@ export function fromLocal(lc: LocalConfig): ChainConfig {
{ denom: x.symbol.toLowerCase(), exponent: Number(x.exponent) },
],
}));
conf.versions = {
cosmosSdk: lc.sdk_version
}
conf.bech32Prefix = lc.addr_prefix;
conf.chainName = lc.chain_name;
conf.coinType = lc.coin_type;