metamask-controller - lint fix

feature/default_network_editable
kumavis 7 years ago committed by kumavis
parent fe42de4642
commit c9f3404ca5
  1. 2
      app/scripts/metamask-controller.js

@ -608,7 +608,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])

Loading…
Cancel
Save