I just deployed a contract and wants to access it using web3 to read and write data.
I have web3 working, passed the contract Address and ABI and I can access the contract and Read Data using:
contract.methods.getPrice().call()
This returns the correct value from the contract.
However, If i want to write something using send() like:
contract.methods.setTestString("Test").send( {from: account }, function(error, transactionHash){ alert(error); });
I get the error "Method not found". But the method is there and it is also public available.
Any ideas?
Thx