Skip to content

Instantly share code, notes, and snippets.

@doey-default
Created November 14, 2019 12:37
Show Gist options
  • Select an option

  • Save doey-default/8234caf6aacf7ebae2f22f3b29a40979 to your computer and use it in GitHub Desktop.

Select an option

Save doey-default/8234caf6aacf7ebae2f22f3b29a40979 to your computer and use it in GitHub Desktop.
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