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
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
The error was that I was passing a stringified ABI to web3.eth.contract(ABI) and not an array object.
var res = contracts["Rating"].contract.ratings(param);
Si I'd try to access it through
contracts["Gizmo"] or whatever name you called it.