Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed May 28, 2024
1 parent cc509c7 commit 33a354b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/builder/src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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);
}

Expand Down

0 comments on commit 33a354b

Please sign in to comment.