Created
June 27, 2018 04:42
-
-
Save XertroV/6f267f3000fdb32d056011bf4b18443c to your computer and use it in GitHub Desktop.
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 c = eth.contract([{ | |
"constant": true, | |
"inputs": [], | |
"name": "getCount", | |
"outputs": [ | |
{ | |
"name": "count", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}]).at("0x9FF3F97d7ccD0Cb034eF6c7721088a6B820bDAD8") | |
undefined | |
> c | |
{ | |
abi: [{ | |
constant: true, | |
inputs: [], | |
name: "getCount", | |
outputs: [{...}], | |
payable: false, | |
stateMutability: "view", | |
type: "function" | |
}], | |
address: "0x9FF3F97d7ccD0Cb034eF6c7721088a6B820bDAD8", | |
transactionHash: null, | |
allEvents: function(), | |
getCount: function() | |
} | |
> c.getCount() | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment