Created
April 14, 2018 20:18
-
-
Save saurfang/fd5b4de1800646aec5bd71c85684231b 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
// construct contract object with ABI | |
var abiDefinition = [{"constant":false,"inputs":[],"name":"callme","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isComplete","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]; | |
var CallMeChallenge = web3.eth.contract(abiDefinition); | |
// load from deployed contract. replace the address with yours | |
var challenge = CallMeChallenge.at("0xf70218870AD13c7b57a01B95cF86a6D137088aE3"); | |
// call `callme` function | |
challenge.callme(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment