Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///アクセスチェック用のmodifier
- modifier onlyOwner(){
- require(msg.sender == owner);
- _;
- }
- ///オーナーを設定
- function owned() public{
- owner = msg.sender;
- }
- ///オーナーを変更する
- function changeOwner(address _newOwner) public onlyOwner{
- owner = _newOwner;
- }
- function() public payable{
- }
- function MotalSample() public{
- owned;
- someState = "initial";
- }
Add Comment
Please, Sign In to add comment