Using Web3 version 1.0 and getting the following error:
web3.toWeiis not a function
Using Web3 version 1.0 and getting the following error:
web3.toWeiis not a function
At Web3 version 1.0, utility functions like toWei and many others have been moved to the web3.utils.
To check all utility functions refer to: