diff options
author | Nickyg <nicky.gurbani@gmail.com> | 2017-04-26 04:10:33 +0800 |
---|---|---|
committer | Nickyg <nicky.gurbani@gmail.com> | 2017-04-26 04:10:33 +0800 |
commit | e9aa37b699a105019384cbde88a114965ff1e2cd (patch) | |
tree | fb1421b92ea1d13163c2f6fa64528d94727b2165 /app | |
parent | afbe6f5e5fa18b663cfe68c40a05bcacda73e3ac (diff) | |
download | tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.gz tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.bz2 tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.lz tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.xz tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.tar.zst tangerine-wallet-browser-e9aa37b699a105019384cbde88a114965ff1e2cd.zip |
add rinkeby network
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/config.js | 2 | ||||
-rw-r--r-- | app/scripts/lib/config-manager.js | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/scripts/config.js b/app/scripts/config.js index ec421744d..4f62268e1 100644 --- a/app/scripts/config.js +++ b/app/scripts/config.js @@ -1,6 +1,7 @@ const MAINET_RPC_URL = 'https://mainnet.infura.io/metamask' const TESTNET_RPC_URL = 'https://ropsten.infura.io/metamask' const KOVAN_RPC_URL = 'https://kovan.infura.io/metamask' +const RINKEBY_RPC_URL = 'https://rinkeby.infura.io' const DEFAULT_RPC_URL = TESTNET_RPC_URL global.METAMASK_DEBUG = 'GULP_METAMASK_DEBUG' @@ -12,5 +13,6 @@ module.exports = { testnet: TESTNET_RPC_URL, morden: TESTNET_RPC_URL, kovan: KOVAN_RPC_URL, + rinkeby: RINKEBY_RPC_URL, }, } diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js index e31cb45ed..340ad4292 100644 --- a/app/scripts/lib/config-manager.js +++ b/app/scripts/lib/config-manager.js @@ -6,6 +6,8 @@ const TESTNET_RPC = MetamaskConfig.network.testnet const MAINNET_RPC = MetamaskConfig.network.mainnet const MORDEN_RPC = MetamaskConfig.network.morden const KOVAN_RPC = MetamaskConfig.network.kovan +const RINKEBY_RPC = MetamaskConfig.network.rinkeby + /* The config-manager is a convenience object * wrapping a pojo-migrator. @@ -153,6 +155,9 @@ ConfigManager.prototype.getCurrentRpcAddress = function () { case 'kovan': return KOVAN_RPC + + case 'rinkeby': + return RINKEBY_RPC default: return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC |