aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-03-14 12:14:19 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-03-14 12:14:19 +0800
commitf6e551ef5f3773cf5637c2ae0e11fdeb5f40645b (patch)
treece86d093b6f60ee595dcf60ef25a209ad08bce1d
parent2a68c89ba7c5f168083beee77161adeb863d82c9 (diff)
downloadtangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.tar
tangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.tar.gz
tangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.tar.bz2
tangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.tar.lz
tangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.tar.xz
tangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.tar.zst
tangerine-wallet-browser-f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b.zip
Swithch the default network to mainnet
-rw-r--r--app/scripts/first-time-state.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/scripts/first-time-state.js b/app/scripts/first-time-state.js
index 3196981ba..46fcde998 100644
--- a/app/scripts/first-time-state.js
+++ b/app/scripts/first-time-state.js
@@ -1,11 +1,14 @@
+// test and development environment variables
+const env = process.env.METAMASK_ENV
+const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
+
//
// The default state of MetaMask
//
-
module.exports = {
config: {
provider: {
- type: 'testnet',
+ type: (METAMASK_DEBUG || env === 'test') ? 'testnet' : 'mainnet',
},
},
-} \ No newline at end of file
+}