diff --git a/remix-lib/src/execution/txRunner.js b/remix-lib/src/execution/txRunner.js index 35ff7f1920..cdc0dae515 100644 --- a/remix-lib/src/execution/txRunner.js +++ b/remix-lib/src/execution/txRunner.js @@ -32,7 +32,7 @@ class TxRunner { } _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()) { promptCb( (value) => { diff --git a/remix-lib/src/universalDapp.js b/remix-lib/src/universalDapp.js index d98890ad63..3a76f06cf2 100644 --- a/remix-lib/src/universalDapp.js +++ b/remix-lib/src/universalDapp.js @@ -201,7 +201,7 @@ module.exports = class UniversalDApp { if (error) { callback(error) } else { - callback(null, executionContext.web3().fromWei(balance, 'ether')) + callback(null, executionContext.web3().utils.fromWei(balance, 'ether')) } }) }