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

contract owned {
    address owner;

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

    constructor() public {
        owner = msg.sender;
    }
}