forked from tornadocash/tornado-cli
Fixed bug on NetId iteration
This commit is contained in:
parent
7dcd41c2c3
commit
b1d3155ebb
4
dist/cli.js
vendored
4
dist/cli.js
vendored
@ -67535,7 +67535,7 @@ var scripts = {
|
|||||||
lint: "eslint src/**/*.ts --ext .ts --ignore-pattern src/typechain",
|
lint: "eslint src/**/*.ts --ext .ts --ignore-pattern src/typechain",
|
||||||
"build:node": "ts-node scripts/fflate.ts && rollup -c",
|
"build:node": "ts-node scripts/fflate.ts && rollup -c",
|
||||||
"build:web": "webpack",
|
"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",
|
start: "ts-node src/cli.ts",
|
||||||
startHelp: "ts-node src/cli.ts help",
|
startHelp: "ts-node src/cli.ts help",
|
||||||
createDeposit: "ts-node src/cli.ts create",
|
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 = {};
|
let customConfig = {};
|
||||||
function getNetworkConfig() {
|
function getNetworkConfig() {
|
||||||
const allConfig = __spreadValues$3(__spreadValues$3({}, defaultConfig), customConfig);
|
const allConfig = __spreadValues$3(__spreadValues$3({}, defaultConfig), customConfig);
|
||||||
|
2
dist/index.js
vendored
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 = {};
|
exports.customConfig = {};
|
||||||
function addNetwork(newConfig) {
|
function addNetwork(newConfig) {
|
||||||
enabledChains.push(
|
enabledChains.push(
|
||||||
|
2
dist/index.mjs
vendored
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 = {};
|
let customConfig = {};
|
||||||
function addNetwork(newConfig) {
|
function addNetwork(newConfig) {
|
||||||
enabledChains.push(
|
enabledChains.push(
|
||||||
|
2
dist/index.umd.js
vendored
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 = {};
|
let customConfig = {};
|
||||||
function addNetwork(newConfig) {
|
function addNetwork(newConfig) {
|
||||||
enabledChains.push(
|
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
|
* Custom config object to extend default config
|
||||||
|
2
static/merkleTreeWorker.umd.js
vendored
2
static/merkleTreeWorker.umd.js
vendored
@ -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 = {};
|
let customConfig = {};
|
||||||
function addNetwork(newConfig) {
|
function addNetwork(newConfig) {
|
||||||
enabledChains.push(
|
enabledChains.push(
|
||||||
|
Loading…
Reference in New Issue
Block a user