current position:Home>web3. JS calling contract method reports an error VM exception while processing transaction: revert

web3. JS calling contract method reports an error VM exception while processing transaction: revert

2022-02-03 23:18:53 Q & A of Denglian community

Just a very simple way image.png Obtain the contract after successful deployment var contract = new web3.eth.Contract(abi,address);

call image.png

Report errors VM Exception while processing transaction: revert

webjs The version is 1.3






Other answers 1:


Other answers 2:

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

Random recommended