Created
May 21, 2015 17:48
-
-
Save arhuaco/a36854ff9aa0901c6267 to your computer and use it in GitHub Desktop.
Issue calling contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> var contract_address = '0x5a219cab7d5a5888ae86e80de2775dc022de6e0c'; | |
undefined | |
> abiDef = [{ type: 'function', constant: true, inputs: [ ], name: 'step', outputs: [{name: 'retVal', type: 'uint256' } ] }] | |
[{ | |
type: 'function', | |
constant: true, | |
inputs: [ ], | |
name: 'step', | |
outputs: [{ | |
name: 'retVal', | |
type: 'uint256' | |
} ] | |
} ] | |
> counter_contract = eth.contract(abiDef); | |
{ | |
abi: [{ | |
type: 'function', | |
constant: true, | |
inputs: [ ], | |
name: 'step', | |
outputs: [{ | |
name: 'retVal', | |
type: 'uint256' | |
} ] | |
} ], | |
new: [Function], | |
at: [Function] | |
} | |
> counter = new counter_contract(contract_address) | |
TypeError: 'counter_contract' is not a function | |
at <anonymous>:1:15 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
counter = counter_contract.at(contract_address)