Merge pull request #482 from ethereum/injectedsigning

Injected web3 signing fixed
fix#470
yann300 4 years ago committed by GitHub
commit 4db32ee3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/remix-ide/src/blockchain/providers/injected.js

@ -37,7 +37,7 @@ class InjectedProvider {
signMessage (message, account, _passphrase, cb) {
const messageHash = hashPersonalMessage(Buffer.from(message))
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)
})
} catch (e) {

Loading…
Cancel
Save