Created
November 14, 2019 12:37
-
-
Save doey-default/8234caf6aacf7ebae2f22f3b29a40979 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
| import { default as Web3 } from 'web3'; | |
| const URL = "http://127.0.0.1:7545"; | |
| // TODO | |
| const CONTRACT_ADDRESS = ""; | |
| // TODO | |
| const MY_ACCOUNT = ""; | |
| const web3 = new Web3(URL); | |
| // TODO | |
| const SIMPLE_STORAGE_ABI = [ | |
| ] | |
| var contractInstance = new web3.eth.Contract(SIMPLE_STORAGE_ABI, CONTRACT_ADDRESS); | |
| function setMessage(message) { | |
| // TODO | |
| } | |
| function getMessage() { | |
| // TODO | |
| } | |
| export { setMessage, getMessage }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment