diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-05-08 19:08:32 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-09 21:06:47 +0800 |
commit | 5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a (patch) | |
tree | 12e3c227cb9fb1af5f171b9e48c3f5106b19fa7d | |
parent | 1a014f83cc8670a7c15c0338a33df124e982703f (diff) | |
download | dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.tar dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.tar.gz dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.tar.bz2 dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.tar.lz dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.tar.xz dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.tar.zst dexon-solidity-5cbe3e1a50f4aed7d07b7c45f115ac97df2c885a.zip |
Replace constant with view in std/ contracts.
-rw-r--r-- | std/StandardToken.sol | 6 | ||||
-rw-r--r-- | std/Token.sol | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/std/StandardToken.sol b/std/StandardToken.sol index ca0658f2..c2fc3a66 100644 --- a/std/StandardToken.sol +++ b/std/StandardToken.sol @@ -13,11 +13,11 @@ contract StandardToken is Token { balance[_initialOwner] = _supply; } - function balanceOf(address _account) constant public returns (uint) { + function balanceOf(address _account) view public returns (uint) { return balance[_account]; } - function totalSupply() constant public returns (uint) { + function totalSupply() view public returns (uint) { return supply; } @@ -53,7 +53,7 @@ contract StandardToken is Token { return true; } - function allowance(address _owner, address _spender) constant public returns (uint256) { + function allowance(address _owner, address _spender) view public returns (uint256) { return m_allowance[_owner][_spender]; } } diff --git a/std/Token.sol b/std/Token.sol index 4b4eb71e..7348a8f5 100644 --- a/std/Token.sol +++ b/std/Token.sol @@ -4,10 +4,10 @@ contract Token { event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); - function totalSupply() constant public returns (uint256 supply); - function balanceOf(address _owner) constant public returns (uint256 balance); + function totalSupply() view public returns (uint256 supply); + function balanceOf(address _owner) view public returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); function approve(address _spender, uint256 _value) public returns (bool success); - function allowance(address _owner, address _spender) constant public returns (uint256 remaining); + function allowance(address _owner, address _spender) view public returns (uint256 remaining); } |