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