networkConfig: keep default export separate to not break UI

Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
AlienTornadosaurusHex 2023-05-16 15:24:52 +00:00
parent ad0d1391dc
commit 2fbd860f51
7 changed files with 13 additions and 24 deletions

View file

@ -3,7 +3,7 @@ import 'dotenv/config'
import fs from 'fs'
import { uniqBy } from 'lodash'
import networkConfig from '../networkConfig'
import networkConfig, { enabledChains } from '../networkConfig'
import ABI from '../abis/Instance.abi.json'
import { loadCachedEvents, getPastEvents } from './helpers'
@ -82,8 +82,6 @@ async function main(type, netId) {
async function start() {
const [, , , chain] = process.argv
const enabledChains = networkConfig.enabledChains
if (!enabledChains.includes(chain)) {
throw new Error(`Supported chain ids ${enabledChains.join(', ')}`)
}