feature/default_network_editable
Kevin Serrano 8 years ago
parent db48f8984f
commit 026e0e3383
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 4
      app/scripts/lib/controllers/preferences.js
  2. 2
      app/scripts/metamask-controller.js

@ -24,7 +24,7 @@ class PreferencesController {
return this.store.getState().selectedAddress return this.store.getState().selectedAddress
} }
addToFrequentRPCList (_url) { addToFrequentRpcList (_url) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let rpcList = this.getFrequentRPCList() let rpcList = this.getFrequentRPCList()
let index = rpcList.findIndex((element) => { element === _url }) let index = rpcList.findIndex((element) => { element === _url })
@ -40,7 +40,7 @@ class PreferencesController {
}) })
} }
getFrequentRPCList () { getFrequentRpcList () {
return this.store.getState().frequentRPCList return this.store.getState().frequentRPCList
} }

@ -259,7 +259,7 @@ module.exports = class MetamaskController extends EventEmitter {
// PreferencesController // PreferencesController
setSelectedAddress: nodeify(preferencesController.setSelectedAddress).bind(preferencesController), setSelectedAddress: nodeify(preferencesController.setSelectedAddress).bind(preferencesController),
setFrequentRPCList: nodeify(preferencesController.setFrequentRPCList).bind(preferencesController), addToFrequentRpcList: nodeify(preferencesController.addToFrequentRpcList).bind(preferencesController),
// KeyringController // KeyringController
setLocked: nodeify(keyringController.setLocked).bind(keyringController), setLocked: nodeify(keyringController.setLocked).bind(keyringController),

Loading…
Cancel
Save