diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-11-22 08:46:26 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-11-22 08:46:26 +0800 |
commit | 1cbab788ec21ba096d4375015c6cd3cd481de5b2 (patch) | |
tree | aeb41f412e2567108099cec462e969e81a902304 /app/scripts/keyring-controller.js | |
parent | f5b0795ac5582dd53de728479cf47c43eabfe67c (diff) | |
download | tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.tar tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.tar.gz tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.tar.bz2 tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.tar.lz tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.tar.xz tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.tar.zst tangerine-wallet-browser-1cbab788ec21ba096d4375015c6cd3cd481de5b2.zip |
Change fauceting to become a response of an emit.
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r-- | app/scripts/keyring-controller.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js index b29150267..31d144ca9 100644 --- a/app/scripts/keyring-controller.js +++ b/app/scripts/keyring-controller.js @@ -9,7 +9,6 @@ const EventEmitter = require('events').EventEmitter const normalize = require('./lib/sig-util').normalize const encryptor = require('./lib/encryptor') const messageManager = require('./lib/message-manager') -const autoFaucet = require('./lib/auto-faucet') const IdStoreMigrator = require('./lib/idStore-migrator') const BN = ethUtil.BN @@ -160,7 +159,7 @@ module.exports = class KeyringController extends EventEmitter { this.configManager.setSelectedAccount(firstAccount) this.placeSeedWords() - autoFaucet(hexAccount) + this.emit('newAccount', hexAccount) this.setupAccounts(accounts) this.persistAllKeyrings() .then(() => { |