Commit 39d8ef77 authored by lianahus's avatar lianahus Committed by yann300

updated with new API of web3.js

parent 5c08cdd5
......@@ -12,7 +12,7 @@ class InjectedProvider {
newAccount (passwordPromptCb, cb) {
passwordPromptCb((passphrase) => {
this.executionContext.web3().personal.newAccount(passphrase, cb)
this.executionContext.web3().eth.personal.newAccount(passphrase, cb)
})
}
......
......@@ -10,7 +10,7 @@ class NodeProvider {
getAccounts (cb) {
if (this.config.get('settings/personal-mode')) {
return this.executionContext.web3().personal.getListAccounts(cb)
return this.executionContext.web3().eth.personal.getAccounts(cb)
}
return this.executionContext.web3().eth.getAccounts(cb)
}
......@@ -20,7 +20,7 @@ class NodeProvider {
return cb('Not running in personal mode')
}
passwordPromptCb((passphrase) => {
this.executionContext.web3().personal.newAccount(passphrase, cb)
this.executionContext.web3().eth.personal.newAccount(passphrase, cb)
})
}
......
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