Last active
January 15, 2018 16:56
-
-
Save Arieg419/3e414610f9ec659bf7ea9d048a4d3d35 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
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