hey guys, could you help me please? trying to use function from web3, getting an error: “Invalid number of arguments to Solidity function”. But I haven’t any arguments in my function 🙂
return TokenInstance.buyToken({ from: account, gas: 300000, value: amount }, (err, res) => { console.log(err); console.log(res); });
Contract - function buyToken() external payable {…}
Dec 3, 2020, 10:20 PM