Skip to content

Instantly share code, notes, and snippets.

@smatthewenglish
Created July 30, 2017 20:20
Show Gist options
  • Save smatthewenglish/6b53251fb5062a2bf0ea18c202ac34f5 to your computer and use it in GitHub Desktop.
Save smatthewenglish/6b53251fb5062a2bf0ea18c202ac34f5 to your computer and use it in GitHub Desktop.
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