1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

metamask-controller - lint fix

This commit is contained in:
kumavis 2018-05-28 23:14:38 -07:00 committed by GitHub
parent 09601439e3
commit 7e87600042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -613,7 +613,7 @@ module.exports = class MetamaskController extends EventEmitter {
const keyring = await this.keyringController.addNewKeyring('Simple Key Pair', [ privateKey ]) const keyring = await this.keyringController.addNewKeyring('Simple Key Pair', [ privateKey ])
const accounts = await keyring.getAccounts() const accounts = await keyring.getAccounts()
// update accounts in preferences controller // update accounts in preferences controller
const allAccounts = await keyringController.getAccounts() const allAccounts = await this.keyringController.getAccounts()
this.preferencesController.setAddresses(allAccounts) this.preferencesController.setAddresses(allAccounts)
// set new account as selected // set new account as selected
await this.preferencesController.setSelectedAddress(accounts[0]) await this.preferencesController.setSelectedAddress(accounts[0])