Skip to content

Instantly share code, notes, and snippets.

@arpit
Last active April 9, 2018 20:04
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 arpit/59ab53aac9d697e9417853e8ea33e6be to your computer and use it in GitHub Desktop.
Save arpit/59ab53aac9d697e9417853e8ea33e6be to your computer and use it in GitHub Desktop.
Simple Storage Smart Contract
pragma solidity ^0.4.17;
contract SimpleStorage {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() public view returns (uint) {
return storedData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment