use `toHex` from the utils scope

pull/7/head
yann300 5 years ago committed by Aniket
parent 296f27d815
commit 5e90207072
  1. 2
      remix-lib/src/execution/txRunner.js

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

Loading…
Cancel
Save