daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest May 17th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. contract NumberContract {
  2.   address private contractIssuer;
  3.   uint private number;
  4.  
  5.   event NumberSet(uint number);
  6.  
  7.   modifier onlyContractIssuer {      
  8.       require(contractIssuer == msg.sender);
  9.       _;
  10.   }
  11.  
  12.   function TestContract() public {
  13.       contractIssuer = msg.sender;    
  14.   }
  15.  
  16.   function setNumber(uint newNumber) onlyContractIssuer public {
  17.       number = newNumber;
  18.       NumberSet(newNumber);
  19.   }
  20. }
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