aboutsummaryrefslogtreecommitdiffstats
path: root/std/owned.sol
diff options
context:
space:
mode:
Diffstat (limited to 'std/owned.sol')
-rw-r--r--std/owned.sol4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/owned.sol b/std/owned.sol
index ee9860d3..8e1d5917 100644
--- a/std/owned.sol
+++ b/std/owned.sol
@@ -1,4 +1,4 @@
-pragma solidity ^0.4.0;
+pragma solidity >0.4.21;
contract owned {
address owner;
@@ -9,7 +9,7 @@ contract owned {
}
}
- function owned() public {
+ constructor() public {
owner = msg.sender;
}
}