fixed issues
This commit is contained in:
parent
683c569f31
commit
ca29dbba7d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user