mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Initialize network controller provider chainId to the appropriate default networks (#9999)
This commit is contained in:
parent
55d3802b46
commit
6ecc3dee22
@ -19,6 +19,8 @@ import {
|
||||
MAINNET,
|
||||
INFURA_PROVIDER_TYPES,
|
||||
NETWORK_TYPE_TO_ID_MAP,
|
||||
MAINNET_CHAIN_ID,
|
||||
RINKEBY_CHAIN_ID,
|
||||
} from './enums'
|
||||
|
||||
const env = process.env.METAMASK_ENV
|
||||
@ -32,9 +34,9 @@ if (process.env.IN_TEST === 'true') {
|
||||
nickname: 'Localhost 8545',
|
||||
}
|
||||
} else if (process.env.METAMASK_DEBUG || env === 'test') {
|
||||
defaultProviderConfigOpts = { type: RINKEBY }
|
||||
defaultProviderConfigOpts = { type: RINKEBY, chainId: RINKEBY_CHAIN_ID }
|
||||
} else {
|
||||
defaultProviderConfigOpts = { type: MAINNET }
|
||||
defaultProviderConfigOpts = { type: MAINNET, chainId: MAINNET_CHAIN_ID }
|
||||
}
|
||||
|
||||
const defaultProviderConfig = {
|
||||
|
Loading…
Reference in New Issue
Block a user