Mix IDE Tutorial: calling a contract function from html

sansky09sansky09 Member Posts: 13
I am just getting started with web3-js. And I am trying out the code at this tutorial:

The 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.


Sign In or Register to comment.