Hi,
I am just getting started with web3-js. And I am trying out the code at this tutorial:
https://github.com/ethereum/wiki/wiki/Mix:-The-DApp-IDEThe name of the contract is 'Rating', and from the html I am trying to reference it as follows:
var res = contracts["Rating"].contract.setRating(key, value);
- where setRating is a simple function, but this errors out: "UncaughtTypeError: Cannot read property 'contract' of undefined. "
Can someone please let me know what has changed since the tutorial was written? I am using the mix that comes along with Ethereum 0.9.41.
Regards,
Comments
has been updated according to the new UI