diff --git a/dist/cli.js b/dist/cli.js index e0ecbd1..a485782 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -67535,7 +67535,7 @@ var scripts = { lint: "eslint src/**/*.ts --ext .ts --ignore-pattern src/typechain", "build:node": "ts-node scripts/fflate.ts && rollup -c", "build:web": "webpack", - build: "yarn build:node && yarn build:web", + build: "yarn types && yarn build:node && yarn build:web", start: "ts-node src/cli.ts", startHelp: "ts-node src/cli.ts help", createDeposit: "ts-node src/cli.ts create", @@ -174420,7 +174420,7 @@ const defaultConfig = { } } }; -const enabledChains = Object.values(NetId); +const enabledChains = Object.values(NetId).filter((n) => typeof n === "number"); let customConfig = {}; function getNetworkConfig() { const allConfig = __spreadValues$3(__spreadValues$3({}, defaultConfig), customConfig); diff --git a/dist/index.js b/dist/index.js index db23629..1927152 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6437,7 +6437,7 @@ const defaultConfig = { } } }; -const enabledChains = Object.values(NetId); +const enabledChains = Object.values(NetId).filter((n) => typeof n === "number"); exports.customConfig = {}; function addNetwork(newConfig) { enabledChains.push( diff --git a/dist/index.mjs b/dist/index.mjs index ef3b4ba..a2be197 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -6416,7 +6416,7 @@ const defaultConfig = { } } }; -const enabledChains = Object.values(NetId); +const enabledChains = Object.values(NetId).filter((n) => typeof n === "number"); let customConfig = {}; function addNetwork(newConfig) { enabledChains.push( diff --git a/dist/index.umd.js b/dist/index.umd.js index 0811698..70208a2 100644 --- a/dist/index.umd.js +++ b/dist/index.umd.js @@ -67492,7 +67492,7 @@ const defaultConfig = { } } }; -const enabledChains = Object.values(NetId); +const enabledChains = Object.values(NetId).filter((n) => typeof n === "number"); let customConfig = {}; function addNetwork(newConfig) { enabledChains.push( diff --git a/src/services/networkConfig.ts b/src/services/networkConfig.ts index 96533a2..1b3308a 100644 --- a/src/services/networkConfig.ts +++ b/src/services/networkConfig.ts @@ -714,7 +714,7 @@ export const defaultConfig: networkConfig = { }, }; -export const enabledChains = Object.values(NetId) as NetIdType[]; +export const enabledChains = Object.values(NetId).filter((n) => typeof n === 'number') as NetIdType[]; /** * Custom config object to extend default config diff --git a/static/merkleTreeWorker.umd.js b/static/merkleTreeWorker.umd.js index b496862..179d8cf 100644 --- a/static/merkleTreeWorker.umd.js +++ b/static/merkleTreeWorker.umd.js @@ -162913,7 +162913,7 @@ const defaultConfig = { } } }; -const enabledChains = Object.values(networkConfig_NetId); +const enabledChains = Object.values(networkConfig_NetId).filter((n) => typeof n === "number"); let customConfig = {}; function addNetwork(newConfig) { enabledChains.push(