Closed danshinn89 closed 4 years ago
toNumber() is not a function however this was working yesterday.
When I load my dev test page in the console I receive the following error:
Uncaught (in promise) TypeError: web3.fromWei(...).toNumber is not a function at app.js:77
` $('.token-price').html(web3.fromWei(App.tokenPrice, 'ether').toNumber());
I also made a change and added ` web3.utils.fromWei(App.tokenPrice, 'ether').toNumber());
However, this comes up as fromWei = undefinied
Its a non issue I had to run truffle networks --clean
toNumber() is not a function however this was working yesterday.
When I load my dev test page in the console I receive the following error:
Uncaught (in promise) TypeError: web3.fromWei(...).toNumber is not a function at app.js:77
` $('.token-price').html(web3.fromWei(App.tokenPrice, 'ether').toNumber());
I also made a change and added ` web3.utils.fromWei(App.tokenPrice, 'ether').toNumber());
However, this comes up as fromWei = undefinied