From 33a354b1168cf7970a7b6a1dfb366f537ba1d918 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Tue, 28 May 2024 16:51:29 +0200 Subject: [PATCH] remove unused vars --- packages/builder/src/utils/chains.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/builder/src/utils/chains.ts b/packages/builder/src/utils/chains.ts index 725b3cff8..c67f0c0a4 100644 --- a/packages/builder/src/utils/chains.ts +++ b/packages/builder/src/utils/chains.ts @@ -119,17 +119,9 @@ export function getEnabledChainsAndProviders() { ? chainsOverride.split(",").map((name) => name.trim()) : []; - let usingDevOnlyChains = true; - if (selectedChainsNames.length > 0) { // if REACT_APP_CHAINS_OVERRIDE is specified we use those selectedChainsNames.forEach((name) => { - // if it's not a local dev chain, it means we are using external - // chains and we need infura/alchemy ids to be set - if (!/^dev[1-9]+$/.test(name)) { - usingDevOnlyChains = false; - } - const chain = availableChains[name]; if (chain === undefined) { throw new Error( @@ -142,12 +134,10 @@ export function getEnabledChainsAndProviders() { } else if (config.appEnv === "production") { // if REACT_APP_CHAINS_OVERRIDE is not specified ans we are in production // we use the default chains for production environments - usingDevOnlyChains = false; chains.push(...productionChains); } else { // if REACT_APP_CHAINS_OVERRIDE is not specified we use the // default chains for staging - usingDevOnlyChains = false; chains.push(...stagingChains); }