aboutsummaryrefslogtreecommitdiffstats
path: root/std/owned.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-07 00:37:47 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-04 00:21:55 +0800
commitf855c78a0839d6f569cb88eda290439b69a680e3 (patch)
treeb93980a207616f630bb7996dcadfffe47e54d7b6 /std/owned.sol
parentc98464db0607f62aa791aa1f7559a76623e254e7 (diff)
downloaddexon-solidity-f855c78a0839d6f569cb88eda290439b69a680e3.tar.gz
dexon-solidity-f855c78a0839d6f569cb88eda290439b69a680e3.tar.zst
dexon-solidity-f855c78a0839d6f569cb88eda290439b69a680e3.zip
Update version pragma and use new constructor syntax in std/ contracts.
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;
}
}