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
|
@ -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(', ')}`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue