Unverified Commit f731225c authored by yann300's avatar yann300 Committed by GitHub

Update settings.js

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