use `toHex` from the utils scope

pull/5370/head
yann300 5 years ago committed by Aniket
parent ae91e5ea4d
commit 6a5b22feb6
  1. 2
      remix-lib/src/execution/txRunner.js

@ -34,7 +34,7 @@ class TxRunner {
}
_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()) {
promptCb(
(value) => {

Loading…
Cancel
Save