fix standard

pull/5370/head
yann300 5 years ago
parent 4777ef707c
commit 0771890ac5
  1. 8
      src/blockchain/providers/vm.js

@ -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 {
} }
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) {

Loading…
Cancel
Save