I have an instance of a Gizmo contract created by a Factory but I can't hook into it from JS.
> gizmoInst = web3.eth.contract(gizmoABI).at(gizmoAddr)
Error: INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised
Any clues?
I have an instance of a Gizmo contract created by a Factory but I can't hook into it from JS.
> gizmoInst = web3.eth.contract(gizmoABI).at(gizmoAddr)
Error: INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised
Any clues?
The error was that I was passing a stringified ABI to web3.eth.contract(ABI) and not an array object.
if you're using Mix the access to the contract is just done using contracts["contractName"] . if you follow the tutorial here, they write a contract called Rating. the way to access it in the javascript code is the following :
var res = contracts["Rating"].contract.ratings(param);
Si I'd try to access it through contracts["Gizmo"]
or whatever name you called it.