Skip to content

Instantly share code, notes, and snippets.

@Arieg419
Last active January 15, 2018 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arieg419/3e414610f9ec659bf7ea9d048a4d3d35 to your computer and use it in GitHub Desktop.
Save Arieg419/3e414610f9ec659bf7ea9d048a4d3d35 to your computer and use it in GitHub Desktop.
const CounterContract = {
balance: 0,
counter: 0,
incrementValue: function() {
this.counter++;
},
id: 1,
fromAddress: "Alice",
call: function() {
return {
getBalance: this.balance,
getFromAddress: this.fromAddress
};
},
send: function() {
return {
incrementValue: this.incrementValue
};
},
abi: function() {
return {
sendables: this.incrementValue.toString()
};
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment