fixed issues

This commit is contained in:
liangping 2024-04-28 09:17:48 +08:00
parent 683c569f31
commit ca29dbba7d

View File

@ -138,6 +138,7 @@ function apiConverter(api: any[]) {
export function fromLocal(lc: LocalConfig): ChainConfig {
const conf = {} as ChainConfig;
if(lc.assets && Array.isArray(lc.assets)) {
conf.assets = lc.assets.map((x) => ({
name: x.base,
base: x.base,
@ -151,6 +152,7 @@ export function fromLocal(lc: LocalConfig): ChainConfig {
{ denom: x.symbol.toLowerCase(), exponent: Number(x.exponent) },
],
}));
}
conf.versions = {
cosmosSdk: lc.sdk_version
}