Skip to content

Commit

Permalink
fix: exclude goerli from default network state
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Dec 20, 2024
1 parent ceca030 commit aef3a9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/network-controller/src/NetworkController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,13 @@ function getDefaultNetworkConfigurationsByChainId(): Record<
return Object.values(InfuraNetworkType).reduce<
Record<Hex, NetworkConfiguration>
>((obj, infuraNetworkType) => {
if (
infuraNetworkType === InfuraNetworkType.goerli ||
infuraNetworkType === InfuraNetworkType['linea-goerli']
) {
return obj;
}

const chainId = ChainId[infuraNetworkType];
const rpcEndpointUrl =
// This ESLint rule mistakenly produces an error.
Expand Down

0 comments on commit aef3a9a

Please sign in to comment.