Using Truffle Development framework (web3, react, and solidity) to test a simple smart contract. I have a basic function I am testing when I press a button on the UI, but it doesn’t seem to be working the way I’d expect it. I expect the contract to increment the value and return true. Note, that the value is later being
Tag: ethereum
How to authenticate and send contract method using web3.js 1.0
I am confused about how I should be executing a contract’s method using the web3 1.0 library. This code works (so long as I manually unlock the account first): I get this error (if I don’t unlock manually first): Returned error: authentication needed: password or unlock The above code is an API endpoint in node.js, so I want it to