Update settings.js

pull/1/head
yann300 6 years ago committed by GitHub
parent 14fbab03c0
commit f731225c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/tabs/runTab/model/settings.js

@ -93,7 +93,7 @@ class Settings {
const hashedMsg = executionContext.web3().sha3(message)
try {
executionContext.web3().eth.sign(account, hashedMsg, (error, signedData) => {
cb(error, hashedMsg, signedData)
cb(error.message, hashedMsg, signedData)
})
} catch (e) {
cb(e.message)
@ -105,7 +105,7 @@ class Settings {
try {
var personal = new Personal(executionContext.web3().currentProvider)
personal.sign(hashedMsg, account, passphrase, (error, signedData) => {
cb(error, hashedMsg, signedData)
cb(error.message, hashedMsg, signedData)
})
} catch (e) {
cb(e.message)

Loading…
Cancel
Save