diff options
author | pinkiebell <40266861+pinkiebell@users.noreply.github.com> | 2018-07-25 06:03:36 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-25 06:03:36 +0800 |
commit | 3667f3cb8556d55ad893ec8c1a0f84447273906f (patch) | |
tree | 527bbca7ec0b09bab3485c4df00e22d8ab44b466 /app/scripts/controllers | |
parent | fed9ae0deed5853014cfc76b4314195d477f14f4 (diff) | |
download | tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.tar tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.tar.gz tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.tar.bz2 tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.tar.lz tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.tar.xz tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.tar.zst tangerine-wallet-browser-3667f3cb8556d55ad893ec8c1a0f84447273906f.zip |
network.js: convert rpc protocol to lower case (#4855)
Fixes #4253
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r-- | app/scripts/controllers/network/network.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js index a50f6dc45..b6f7705b5 100644 --- a/app/scripts/controllers/network/network.js +++ b/app/scripts/controllers/network/network.js @@ -9,6 +9,7 @@ const extend = require('xtend') const EthQuery = require('eth-query') const createEventEmitterProxy = require('../../lib/events-proxy.js') const log = require('loglevel') +const urlUtil = require('url') const { ROPSTEN, RINKEBY, @@ -155,6 +156,8 @@ module.exports = class NetworkController extends EventEmitter { } _configureStandardProvider ({ rpcUrl }) { + // urlUtil handles malformed urls + rpcUrl = urlUtil.parse(rpcUrl).format() const providerParams = extend(this._baseProviderParams, { rpcUrl, engineParams: { |