Skip to content

Commit

Permalink
slight change
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Jan 22, 2024
1 parent 12a3fce commit 7e14c27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion worker/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ export async function startScheduler() {

try {
const SEPOLIA_ID = '11155111';
let chainIds: string[] = [SEPOLIA_ID, '1', '10']; // sepolia, mainnet, optimism
let chainIds = [];

if (env.DEPLOYMENT_ENV === 'canary' || env.DEPLOYMENT_ENV === 'main') {
// use all chains, remove sepolia
chainIds = Object.keys(AllNetworkConfigs).filter((chainId) => chainId !== SEPOLIA_ID);
} else {
// if not canary nor main, must be dev
chainIds = [SEPOLIA_ID, '1', '10']; // sepolia, mainnet, optimism
}

for (const chainId of chainIds) {
Expand Down

0 comments on commit 7e14c27

Please sign in to comment.