Created
April 14, 2018 14:57
-
-
Save xd4rker/e81201e59d5848b8e9bd2c1a29949270 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 abi = [{"constant":false,"inputs":[{"name":"n","type":"uint8"}],"name":"guess","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"isComplete","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"}]; | |
var contract = web3.eth.contract(abi); | |
var contractInstance = contract.at('0xeD108ab8e7436fAa61b55591262abE1FD2C2E4Cb'); | |
contractInstance.guess(42, {value: 1000000000000000000}, function(err, res) { }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment