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

contract owned {
    address owner;

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

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