diff options
-rw-r--r-- | app/scripts/keyring-controller.js | 4 | ||||
-rw-r--r-- | test/unit/keyring-controller-test.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index 4acaebba3..e635ad285 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -238,13 +238,13 @@ module.exports = class KeyringController extends EventEmitter { setupAccounts (accounts) { var arr = accounts || this.getAccounts() arr.forEach((account) => { - this.loadBalanceAndNickname(account) + this.getBalanceAndNickname(account) }) } // Takes an account address and an iterator representing // the current number of named accounts. - loadBalanceAndNickname (account) { + getBalanceAndNickname (account) { const address = normalize(account) this.ethStore.addAccount(address) this.createNickname(address) diff --git a/test/unit/keyring-controller-test.js b/test/unit/keyring-controller-test.js index 40e6e0126..2527defe3 100644 --- a/test/unit/keyring-controller-test.js +++ b/test/unit/keyring-controller-test.js @@ -72,7 +72,7 @@ describe('KeyringController', function() { } const mock = this.sinon.mock(keyringController) - mock.expects('loadBalanceAndNickname') + mock.expects('getBalanceAndNickname') .exactly(1) var keyring = keyringController.restoreKeyring(mockSerialized) |