aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/first-time-state.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-04-24 06:49:17 +0800
committerGitHub <noreply@github.com>2018-04-24 06:49:17 +0800
commit4289f813e9f90a38b98f1d067d4e7556438641c8 (patch)
tree8bf154eedeb9c66ca2377aca010d3b80453a22dc /app/scripts/first-time-state.js
parentf1c0d8ad6e5dd99dae723b9bc0ca80bed27e8bc1 (diff)
parent9e41f58af2f236389f11bd1d401da73c0d709b2d (diff)
downloadtangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar
tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.gz
tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.bz2
tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.lz
tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.xz
tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.zst
tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.zip
Merge pull request #3968 from MetaMask/gh-3653
Clean up network config
Diffstat (limited to 'app/scripts/first-time-state.js')
-rw-r--r--app/scripts/first-time-state.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/first-time-state.js b/app/scripts/first-time-state.js
index 144534f43..c49d89288 100644
--- a/app/scripts/first-time-state.js
+++ b/app/scripts/first-time-state.js
@@ -1,6 +1,7 @@
// test and development environment variables
const env = process.env.METAMASK_ENV
const METAMASK_DEBUG = process.env.METAMASK_DEBUG
+const { DEFAULT_NETWORK, MAINNET } = require('./controllers/network/enums')
/**
* @typedef {Object} FirstTimeState
@@ -15,7 +16,7 @@ const initialState = {
config: {},
NetworkController: {
provider: {
- type: (METAMASK_DEBUG || env === 'test') ? 'rinkeby' : 'mainnet',
+ type: (METAMASK_DEBUG || env === 'test') ? DEFAULT_NETWORK : MAINNET,
},
},
}