diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-04 06:15:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 06:15:18 +0800 |
commit | 0695ffe51d5195dbedce37b26bbe395cfdaf3746 (patch) | |
tree | a07b20e4fd9f3c1de2fd3bf80148d210dd16545d /std/StandardToken.sol | |
parent | 104a9736b35495cf50bf1a895d61aed9a1ba830a (diff) | |
parent | 3ae326139a505bed877d5b9ac9b4b3ed84496c3d (diff) | |
download | dexon-solidity-0695ffe51d5195dbedce37b26bbe395cfdaf3746.tar.gz dexon-solidity-0695ffe51d5195dbedce37b26bbe395cfdaf3746.tar.zst dexon-solidity-0695ffe51d5195dbedce37b26bbe395cfdaf3746.zip |
Merge pull request #3635 from ethereum/constructor-modifier
Constructors are defined using the ``constructor`` keyword.
Diffstat (limited to 'std/StandardToken.sol')
-rw-r--r-- | std/StandardToken.sol | 4 |
1 files changed, 2 insertions, 2 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; } |