Add previous checks

This commit is contained in:
abefernan 2024-07-11 10:50:47 +02:00
parent 57b370f846
commit 2fa20005c7
No known key found for this signature in database

View File

@ -27,6 +27,8 @@ export const isChainInfoFilled = (chain: Partial<ChainInfo>): chain is ChainInfo
chain.denom &&
chain.displayDenom &&
Number.isSafeInteger(chain.displayDenomExponent) &&
chain.displayDenomExponent && // Check not needed but narrows next line's type
chain.displayDenomExponent >= 0 &&
chain.assets?.length &&
chain.gasPrice &&
chain.addressPrefix,