SHARE
TWEET

Untitled

a guest Mar 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pragma solidity >=0.4.0 <0.7.0;
  2.  
  3. contract SimpleStorage {
  4.     uint storedData;
  5.     uint myNumber;
  6.  
  7.     function setNumber(uint x) public {
  8.         myNumber = x;    
  9.     }
  10.    
  11.     function set(uint y) public {
  12.         storedData = y;
  13.     }
  14.  
  15.     function get() public view returns (uint) {
  16.         return storedData;
  17.     }
  18.    
  19.     function getNumber() public view returns (uint) {
  20.         return myNumber;
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top