Skip to content

Instantly share code, notes, and snippets.

@laalaguer
Created January 6, 2020 08:03
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 laalaguer/5d7dd6889e70e8784f4448f529dc8976 to your computer and use it in GitHub Desktop.
Save laalaguer/5d7dd6889e70e8784f4448f529dc8976 to your computer and use it in GitHub Desktop.
An example Solidity code for a small smart contract
pragma solidity ^0.5.11;
contract Hello {
uint public counter;
constructor () public {
counter = 0;
}
function increaseAmount () public {
counter = counter + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment