Skip to content

Commit

Permalink
network.js: convert rpc protocol to lower case (#4855)
Browse files Browse the repository at this point in the history
Fixes #4253
  • Loading branch information
pinkiebell authored and whymarrh committed Jul 24, 2018
1 parent fed9ae0 commit 3667f3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Add Trezor Support
- Allow to remove accounts (Imported and Hardware Wallets)
- [#4840](https://github.com/MetaMask/metamask-extension/pull/4840): Now shows notifications when transactions are completed.
- [#4855](https://github.com/MetaMask/metamask-extension/pull/4855): network.js: convert rpc protocol to lower case.

## 4.8.0 Thur Jun 14 2018

Expand Down
3 changes: 3 additions & 0 deletions app/scripts/controllers/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 3667f3c

Please sign in to comment.