|
|
@ -151,7 +151,6 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
initializeProvider () { |
|
|
|
initializeProvider () { |
|
|
|
const keyringController = this.keyringController |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let provider = MetaMaskProvider({ |
|
|
|
let provider = MetaMaskProvider({ |
|
|
|
static: { |
|
|
|
static: { |
|
|
@ -173,7 +172,7 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
// new style msg signing
|
|
|
|
// new style msg signing
|
|
|
|
approvePersonalMessage: this.approvePersonalMessage.bind(this), |
|
|
|
approvePersonalMessage: this.approvePersonalMessage.bind(this), |
|
|
|
signPersonalMessage: nodeify(this.signPersonalMessage).bind(this), |
|
|
|
signPersonalMessage: nodeify(this.signPersonalMessage).bind(this), |
|
|
|
personalRecoverSigner: nodeify(keyringController.recoverPersonalMessage).bind(keyringController), |
|
|
|
personalRecoverSigner: nodeify(this.recoverPersonalMessage).bind(this), |
|
|
|
}) |
|
|
|
}) |
|
|
|
return provider |
|
|
|
return provider |
|
|
|
} |
|
|
|
} |
|
|
@ -493,6 +492,11 @@ module.exports = class MetamaskController extends EventEmitter { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
recoverPersonalMessage (msgParams) { |
|
|
|
|
|
|
|
const keyringController = this.keyringController |
|
|
|
|
|
|
|
return keyringController.recoverPersonalMessage(msgParams) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
markAccountsFound (cb) { |
|
|
|
markAccountsFound (cb) { |
|
|
|
this.configManager.setLostAccounts([]) |
|
|
|
this.configManager.setLostAccounts([]) |
|
|
|
this.sendUpdate() |
|
|
|
this.sendUpdate() |
|
|
|