diff --git a/src/config/cache/chains.ts b/src/config/cache/chains.ts index af3dffef5a..0db7dd55c4 100644 --- a/src/config/cache/chains.ts +++ b/src/config/cache/chains.ts @@ -1,5 +1,5 @@ import { ChainInfo, RPC_AUTHENTICATION } from '@gnosis.pm/safe-react-gateway-sdk' -import { getMChainsConfig } from '../../services' +import { MChainInfo, getMChainsConfig } from '../../services' // Cache is required as loading Redux store directly is an anit-pattern let chains: ChainInfo[] = [] @@ -7,7 +7,7 @@ let chains: ChainInfo[] = [] export const getChains = (): ChainInfo[] => chains export const loadChains = async () => { - const networkList: ChainInfo[] = await getMChainsConfig() + const networkList: MChainInfo[] = await getMChainsConfig() chains = networkList.map((chain) => { return { ...chain, @@ -47,5 +47,4 @@ export const emptyChainInfo: ChainInfo = { gasPrice: [], disabledWallets: [], features: [], - indexerDb: '' } diff --git a/src/services/index.ts b/src/services/index.ts index 703c57d6a6..4d916008c9 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -36,6 +36,7 @@ type _ChainInfo = { explorer: string defaultGasPrice: string defaultGas: GasPriceDefault[] + indexerDb: string } type GasPriceDefault = {