Created
July 30, 2017 20:20
-
-
Save smatthewenglish/6b53251fb5062a2bf0ea18c202ac34f5 to your computer and use it in GitHub Desktop.
This file contains 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
pragma solidity ^0.4.13; | |
// This contract demonstrates a simple non-constant (transactional) function you can call from geth. | |
// increment() takes no parameters and merely increments the "iteration" value. | |
contract Incrementer { | |
uint iteration; | |
function Incrementer() { | |
iteration = 0; | |
} | |
function increment(uint count) { | |
iteration += count; | |
} | |
function getIteration() constant returns (uint) { | |
return iteration; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment