current position:Home>Interact with the contract in the truss console, and call Web3 when passing parameters The toWei hint is not a function

Interact with the contract in the truss console, and call Web3 when passing parameters The toWei hint is not a function

2022-02-03 20:51:17 Q & A of Denglian community

In use truffle When deploying the contract , For reference web3.toWei The same hint , What is the cause ?




Take the answer 1:

It uses web3 1.x Version of , Use web3.utils.toWei()




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032051156290.html

Random recommended