Unverified Commit 4db32ee3 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #482 from ethereum/injectedsigning

Injected web3 signing fixed
parents c46c9165 bead4f9e
...@@ -37,7 +37,7 @@ class InjectedProvider { ...@@ -37,7 +37,7 @@ class InjectedProvider {
signMessage (message, account, _passphrase, cb) { signMessage (message, account, _passphrase, cb) {
const messageHash = hashPersonalMessage(Buffer.from(message)) const messageHash = hashPersonalMessage(Buffer.from(message))
try { try {
this.executionContext.web3().eth.sign(message, account, (error, signedData) => { this.executionContext.web3().eth.personal.sign(message, account, (error, signedData) => {
cb(error, '0x' + messageHash.toString('hex'), signedData) cb(error, '0x' + messageHash.toString('hex'), signedData)
}) })
} catch (e) { } catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment