Commit 79f70139 authored by Iuri Matias's avatar Iuri Matias

replace web3 from wei with directly using web3 utils

parent 9a06836a
...@@ -8,6 +8,7 @@ const remixLib = require('remix-lib') ...@@ -8,6 +8,7 @@ const remixLib = require('remix-lib')
const TxRunner = remixLib.execution.txRunner const TxRunner = remixLib.execution.txRunner
const txHelper = remixLib.execution.txHelper const txHelper = remixLib.execution.txHelper
const EventManager = remixLib.EventManager const EventManager = remixLib.EventManager
const Web3 = require('web3')
const { resultToRemixTx } = require('./txResultHelper') const { resultToRemixTx } = require('./txResultHelper')
...@@ -205,7 +206,8 @@ class UniversalDApp { ...@@ -205,7 +206,8 @@ class UniversalDApp {
if (error) { if (error) {
callback(error) callback(error)
} else { } else {
callback(null, this.executionContext.web3().fromWei(balance, 'ether')) // callback(null, this.executionContext.web3().fromWei(balance, 'ether'))
callback(null, Web3.utils.fromWei(balance.toString(10), '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