Commit 296f27d8 authored by yann300's avatar yann300 Committed by Aniket

Update universalDapp.js

Fix compatibility with web3 1.0.0
parent 528a67da
...@@ -203,7 +203,7 @@ module.exports = class UniversalDApp { ...@@ -203,7 +203,7 @@ module.exports = 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().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