aboutsummaryrefslogblamecommitdiffstats
path: root/std/owned.sol
blob: bbb8d957da440d9086c443c8d1e837d2e45eceb2 (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() {
        owner = msg.sender;
    }
}