networkConfig: keep default export separate to not break UI
Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
parent
ad0d1391dc
commit
2fbd860f51
7 changed files with 13 additions and 24 deletions
|
@ -2,7 +2,7 @@ import Web3 from 'web3'
|
|||
|
||||
import graph from '@/services/graph'
|
||||
import { download } from '@/store/snark'
|
||||
import networkConfig from '@/networkConfig'
|
||||
import networkConfig, { enabledChains } from '@/networkConfig'
|
||||
import InstanceABI from '@/abis/Instance.abi.json'
|
||||
import { CONTRACT_INSTANCES, eventsType, httpConfig } from '@/constants'
|
||||
import { sleep, flattenNArray, formatEvents, capitalizeFirstLetter } from '@/utils'
|
||||
|
@ -19,7 +19,7 @@ class EventService {
|
|||
this.idb = window.$nuxt.$indexedDB(netId)
|
||||
|
||||
const { nativeCurrency } = networkConfig[`netId${netId}`]
|
||||
const hasCache = networkConfig.enabledChains.includes(netId.toString())
|
||||
const hasCache = enabledChains.includes(netId.toString())
|
||||
|
||||
this.netId = netId
|
||||
this.amount = amount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue