|
|
|
@ -71,7 +71,7 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
|
txList: this.configManager.getTxList(), |
|
|
|
|
txHistoryLimit: 40, |
|
|
|
|
setTxList: this.configManager.setTxList.bind(this.configManager), |
|
|
|
|
getSelectedAccount: this.preferencesController.getSelectedAccount.bind(this.preferencesController), |
|
|
|
|
getSelectedAddress: this.preferencesController.getSelectedAddress.bind(this.preferencesController), |
|
|
|
|
getGasMultiplier: this.configManager.getGasMultiplier.bind(this.configManager), |
|
|
|
|
getNetwork: this.getStateNetwork.bind(this), |
|
|
|
|
signTransaction: this.keyringController.signTransaction.bind(this.keyringController), |
|
|
|
@ -125,7 +125,7 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
|
rpcUrl: this.configManager.getCurrentRpcAddress(), |
|
|
|
|
// account mgmt
|
|
|
|
|
getAccounts: (cb) => { |
|
|
|
|
let selectedAccount = this.preferencesController.getSelectedAccount() |
|
|
|
|
let selectedAccount = this.preferencesController.getSelectedAddress() |
|
|
|
|
let result = selectedAccount ? [selectedAccount] : [] |
|
|
|
|
cb(null, result) |
|
|
|
|
}, |
|
|
|
@ -342,7 +342,7 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
|
// ensuring they are only ever available in the background process.
|
|
|
|
|
clearSeedWordCache (cb) { |
|
|
|
|
this.configManager.setSeedWords(null) |
|
|
|
|
cb(null, this.preferencesController.getSelectedAccount()) |
|
|
|
|
cb(null, this.preferencesController.getSelectedAddress()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
importAccountWithStrategy (strategy, args, cb) { |
|
|
|
|