After deploying a Smart Contract and knowing that:
address = 0x20e4ac9385ea45919b9709c2b38d3190efa42ee4
ABI = [{
constant: false,
inputs: [],
name: "kill",
outputs: [],
payable: false,
type: "function"
}, {
constant: true,
inputs: [],
name: "greet",
outputs: [{...}],
payable: false,
type: "function"
}, {
inputs: [{...}],
type: "constructor"
}]
I want to call it, but first I need to instantiate it in a JS var like this:
var greeter = eth.contract([{ constant: false, inputs: [], name: "kill", outputs: [], payable: false, type: "function" }, { constant: true,inputs: [], name: "greet", outputs: [{...}], payable: false, type: "function" }, { inputs: [{...}], type: "constructor"}]).at("0x20e4ac9385ea45919b9709c2b38d3190efa42ee4");
but it throws this error:
(anonymous): Line 1:179 Unexpected token . (and 9 more errors)
It seems like a syntax error, maybe I missed something.