Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. //Tell the Solidity compiler what version to use
  2. pragma solidity ^0.4.8;
  3.  
  4. //Declares a new contract
  5. contract SimpleStorage {
  6. //Storage. Persists in between transactions
  7. uint x;
  8.  
  9. //Allows the unsigned integer stored to be changed
  10. function set(uint newValue) {
  11. x = newValue;
  12. }
  13.  
  14. //Returns the currently stored unsigned integer
  15. function get() returns (uint) {
  16. return x;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement