current position:Home>After calling mycontract methods. myfunction(a,b). Send() reports an error

After calling mycontract methods. myfunction(a,b). Send() reports an error

2022-02-03 23:09:49 Q & A of Denglian community

Error message :inpage.js:1 MetaMask - RPC Error: Invalid parameters: must provide an Ethereum address. {code: -32602, message: "Invalid parameters: must provide an Ethereum address.", stack: "Error: Invalid parameters: must provide an Ethereu…eogaeaoehlefnkodbefgpgknn/background.js:1:1241245"}

web3.min.js:8 Uncaught (in promise) {code: -32602, message: "Invalid parameters: must provide an Ethereum address.", stack: "Error: Invalid parameters: must provide an Ethereu…eogaeaoehlefnkodbefgpgknn/background.js:1:1241245"} Error function :

userAccount='0x132ce95a0421804DDee106821dDA834A062055D8';    function setinfo(name,age) {        myContract.methods.setInfo(name,age).send({ from:'userAccount'});    }

.png






Other answers 1:


Other answers 2:


Other answers 3:

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

Random recommended