Fixed bug on NetId iteration

This commit is contained in:
Tornado Contrib 2024-04-29 01:04:52 +00:00
parent 7dcd41c2c3
commit b1d3155ebb
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
6 changed files with 7 additions and 7 deletions

4
dist/cli.js vendored

@ -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);

2
dist/index.js vendored

@ -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(

2
dist/index.mjs vendored

@ -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(

2
dist/index.umd.js vendored

@ -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(

@ -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

@ -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(