diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-03-07 00:37:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-04 00:21:55 +0800 |
commit | f855c78a0839d6f569cb88eda290439b69a680e3 (patch) | |
tree | b93980a207616f630bb7996dcadfffe47e54d7b6 /std | |
parent | c98464db0607f62aa791aa1f7559a76623e254e7 (diff) | |
download | dexon-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')
-rw-r--r-- | std/StandardToken.sol | 4 | ||||
-rw-r--r-- | std/owned.sol | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/std/StandardToken.sol b/std/StandardToken.sol index 1b218d67..5afc9747 100644 --- a/std/StandardToken.sol +++ b/std/StandardToken.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.4.0; +pragma solidity >0.4.21; import "./Token.sol"; @@ -8,7 +8,7 @@ contract StandardToken is Token { mapping (address => mapping (address => uint256)) m_allowance; - function StandardToken(address _initialOwner, uint256 _supply) public { + constructor(address _initialOwner, uint256 _supply) public { supply = _supply; balance[_initialOwner] = _supply; } 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; } } |