Commit 9c36f847 authored by aniket-engg's avatar aniket-engg Committed by Aniket

use web3 utils

parent faad28c1
......@@ -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) => {
......
......@@ -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'))
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment