Guest User

Untitled

a guest
Jan 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ///アクセスチェック用のmodifier
  2. modifier onlyOwner(){
  3. require(msg.sender == owner);
  4. _;
  5. }
  6.  
  7. ///オーナーを設定
  8. function owned() public{
  9. owner = msg.sender;
  10. }
  11.  
  12. ///オーナーを変更する
  13. function changeOwner(address _newOwner) public onlyOwner{
  14. owner = _newOwner;
  15. }
  16.  
  17. function() public payable{
  18. }
  19.  
  20. function MotalSample() public{
  21. owned;
  22.  
  23. someState = "initial";
  24. }
Add Comment
Please, Sign In to add comment