diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-02-22 04:51:46 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-02-22 04:51:46 +0800 |
commit | 026e0e3383cedf290b2cb55e663f158e7f1c1a68 (patch) | |
tree | a9ab376eabd07dfc5a85f9c87ce5f165f7b689f2 /app/scripts | |
parent | db48f8984f8e16b2831aab36cd538d241cb41402 (diff) | |
download | tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.tar tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.tar.gz tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.tar.bz2 tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.tar.lz tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.tar.xz tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.tar.zst tangerine-wallet-browser-026e0e3383cedf290b2cb55e663f158e7f1c1a68.zip |
Fix naming
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/lib/controllers/preferences.js | 4 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/lib/controllers/preferences.js b/app/scripts/lib/controllers/preferences.js index 2d5a1addd..b28f31b4b 100644 --- a/app/scripts/lib/controllers/preferences.js +++ b/app/scripts/lib/controllers/preferences.js @@ -24,7 +24,7 @@ class PreferencesController { return this.store.getState().selectedAddress } - addToFrequentRPCList (_url) { + addToFrequentRpcList (_url) { return new Promise((resolve, reject) => { let rpcList = this.getFrequentRPCList() let index = rpcList.findIndex((element) => { element === _url }) @@ -40,7 +40,7 @@ class PreferencesController { }) } - getFrequentRPCList () { + getFrequentRpcList () { return this.store.getState().frequentRPCList } diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 54c2ebb2c..da186d958 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -259,7 +259,7 @@ module.exports = class MetamaskController extends EventEmitter { // PreferencesController setSelectedAddress: nodeify(preferencesController.setSelectedAddress).bind(preferencesController), - setFrequentRPCList: nodeify(preferencesController.setFrequentRPCList).bind(preferencesController), + addToFrequentRpcList: nodeify(preferencesController.addToFrequentRpcList).bind(preferencesController), // KeyringController setLocked: nodeify(keyringController.setLocked).bind(keyringController), |