daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest May 17th, 2018 99 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
Top