Commit 8dc4cddd authored by yann300's avatar yann300

fix standard

parent b417e5eb
...@@ -24,7 +24,7 @@ class VMProvider { ...@@ -24,7 +24,7 @@ class VMProvider {
resetEnvironment () { resetEnvironment () {
this.RemixSimulatorProvider.Accounts.resetAccounts() this.RemixSimulatorProvider.Accounts.resetAccounts()
this.accounts = {} this.accounts = {}
} }
// TODO: is still here because of the plugin API // TODO: is still here because of the plugin API
// can be removed later when we update the API // can be removed later when we update the API
...@@ -47,13 +47,13 @@ class VMProvider { ...@@ -47,13 +47,13 @@ class VMProvider {
} }
cb(null, Web3.utils.fromWei(new BN(res).toString(10), 'ether')) cb(null, Web3.utils.fromWei(new BN(res).toString(10), 'ether'))
}) })
} }
getGasPrice (cb) { getGasPrice (cb) {
this.web3.eth.getBalance(address, cb) this.web3.eth.getGasPrice(cb)
} }
signMessage(message, account, _passphrase, cb) { signMessage (message, account, _passphrase, cb) {
const hashedMsg = Web3.utils.sha3(message) const hashedMsg = Web3.utils.sha3(message)
this.web3.eth.sign(hashedMsg, account, (error, signedData) => { this.web3.eth.sign(hashedMsg, account, (error, signedData) => {
if (error) { if (error) {
......
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