diff options
author | kumavis <aaron@kumavis.me> | 2018-05-01 07:36:17 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-05-01 07:36:17 +0800 |
commit | 6f316ca450967c161e7f231127a76494bace40a8 (patch) | |
tree | 548b6b5907cb1bb32821eeea48f1f7099a76a527 /app/scripts/controllers | |
parent | bfedd2776d1fa668259488a5216c533b4e959fb0 (diff) | |
download | tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.gz tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.zst tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.zip |
network - remove setNetworkEndpoints
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r-- | app/scripts/controllers/network/network.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js index 3e4bfa020..37a5e69a0 100644 --- a/app/scripts/controllers/network/network.js +++ b/app/scripts/controllers/network/network.js @@ -38,19 +38,6 @@ module.exports = class NetworkController extends EventEmitter { this.on('networkDidChange', this.lookupNetwork) } - async setNetworkEndpoints (version) { - if (version === this._networkEndpointVersion) { - return - } - - this._networkEndpointVersion = version - this._networkEndpoints = getNetworkEndpoints(version) - this._defaultRpc = this._networkEndpoints[DEFAULT_NETWORK] - const { type } = this.getProviderConfig() - - return this.setProviderType(type, true) - } - initializeProvider (_providerParams) { this._baseProviderParams = _providerParams const { type, rpcTarget } = this.providerStore.getState() |