From f6e551ef5f3773cf5637c2ae0e11fdeb5f40645b Mon Sep 17 00:00:00 2001 From: frankiebee Date: Mon, 13 Mar 2017 21:14:19 -0700 Subject: Swithch the default network to mainnet --- app/scripts/first-time-state.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'app/scripts/first-time-state.js') 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 +} -- cgit v1.2.3