aboutsummaryrefslogblamecommitdiffstats
path: root/std/owned.sol
blob: ee9860d343af09f4883dba1fa68771575d8ea64c (plain) (tree)
1
2
3
4
5
6
7
8

                       




                                  
              


         
                             


                           
pragma solidity ^0.4.0;

contract owned {
    address owner;

    modifier onlyowner() {
        if (msg.sender == owner) {
            _;
        }
    }

    function owned() public {
        owner = msg.sender;
    }
}