diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2019-04-17 01:15:53 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2019-04-17 01:15:53 +0800 |
commit | 33836c04638bd0ef023ed913e4c8ec976ad3caae (patch) | |
tree | d6a80503146d6caf1e0d43a38d9046923dc81b71 | |
parent | d7a2ea9a2b28678bf46dfb606187f4bbb7d22453 (diff) | |
download | tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.tar tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.tar.gz tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.tar.bz2 tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.tar.lz tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.tar.xz tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.tar.zst tangerine-wallet-browser-33836c04638bd0ef023ed913e4c8ec976ad3caae.zip |
Set rpcTarget, nickname, and ticker when selecting one of the default networks
-rw-r--r-- | app/scripts/controllers/network/network.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js index 47432c1e2..ab1198dd3 100644 --- a/app/scripts/controllers/network/network.js +++ b/app/scripts/controllers/network/network.js @@ -140,10 +140,10 @@ module.exports = class NetworkController extends EventEmitter { this.providerConfig = providerConfig } - async setProviderType (type) { + async setProviderType (type, rpcTarget = '', ticker = 'ETH', nickname = '') { assert.notEqual(type, 'rpc', `NetworkController - cannot call "setProviderType" with type 'rpc'. use "setRpcTarget"`) assert(INFURA_PROVIDER_TYPES.includes(type) || type === LOCALHOST, `NetworkController - Unknown rpc type "${type}"`) - const providerConfig = { type } + const providerConfig = { type, rpcTarget, ticker, nickname } this.providerConfig = providerConfig } |