aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/chequebook/contract/owned.sol
diff options
context:
space:
mode:
Diffstat (limited to 'contracts/chequebook/contract/owned.sol')
-rw-r--r--contracts/chequebook/contract/owned.sol15
1 files changed, 15 insertions, 0 deletions
diff --git a/contracts/chequebook/contract/owned.sol b/contracts/chequebook/contract/owned.sol
new file mode 100644
index 000000000..ee9860d34
--- /dev/null
+++ b/contracts/chequebook/contract/owned.sol
@@ -0,0 +1,15 @@
+pragma solidity ^0.4.0;
+
+contract owned {
+ address owner;
+
+ modifier onlyowner() {
+ if (msg.sender == owner) {
+ _;
+ }
+ }
+
+ function owned() public {
+ owner = msg.sender;
+ }
+}