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

@ -6,7 +6,7 @@ import BloomFilter from 'bloomfilter.js'
import { MerkleTree } from 'fixed-merkle-tree'
import { buildMimcSponge } from 'circomlibjs'
import networkConfig from '../networkConfig'
import networkConfig, { enabledChains } from '../networkConfig'
import { loadCachedEvents, save } from './helpers'
@ -144,8 +144,6 @@ async function initMimc() {
async function main() {
const [, , , chain] = process.argv
const enabledChains = networkConfig.enabledChains
if (!enabledChains.includes(chain)) {
throw new Error(`Supported chain ids ${enabledChains.join(', ')}`)
}