aboutsummaryrefslogtreecommitdiffstats
path: root/std/owned.sol
blob: bbb8d957da440d9086c443c8d1e837d2e45eceb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pragma solidity ^0.4.0;

contract owned {
    address owner;

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

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