use web3 utils

pull/7/head
aniket-engg 5 years ago committed by Aniket
parent faad28c175
commit 9c36f84746
  1. 2
      remix-lib/src/execution/txRunner.js
  2. 2
      remix-lib/src/universalDapp.js

@ -32,7 +32,7 @@ class TxRunner {
} }
_executeTx (tx, gasPrice, api, promptCb, callback) { _executeTx (tx, gasPrice, api, promptCb, callback) {
if (gasPrice) tx.gasPrice = executionContext.web3().toHex(gasPrice) if (gasPrice) tx.gasPrice = executionContext.web3().utils.toHex(gasPrice)
if (api.personalMode()) { if (api.personalMode()) {
promptCb( promptCb(
(value) => { (value) => {

@ -201,7 +201,7 @@ module.exports = class UniversalDApp {
if (error) { if (error) {
callback(error) callback(error)
} else { } else {
callback(null, executionContext.web3().fromWei(balance, 'ether')) callback(null, executionContext.web3().utils.fromWei(balance, 'ether'))
} }
}) })
} }

Loading…
Cancel
Save