diff options
author | chriseth <chris@ethereum.org> | 2018-07-03 06:33:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-03 06:33:17 +0800 |
commit | 4649f9202a93f7573d7fb425fbcbdd50e6d4407c (patch) | |
tree | c392fe25bfc32af41f69744309df9b541953a002 /test/contracts/Wallet.cpp | |
parent | f5e1cf7753bb6a87f5a9a11db6a497dc4b2ccca5 (diff) | |
parent | 9d23fd80130ca1d020cf3ba494751fd5e3aa5fde (diff) | |
download | dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.tar dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.tar.gz dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.tar.bz2 dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.tar.lz dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.tar.xz dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.tar.zst dexon-solidity-4649f9202a93f7573d7fb425fbcbdd50e6d4407c.zip |
Merge pull request #4397 from ethereum/dropConstantKeywordTests
Test updates for dropping the constant keyword.
Diffstat (limited to 'test/contracts/Wallet.cpp')
-rw-r--r-- | test/contracts/Wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/Wallet.cpp b/test/contracts/Wallet.cpp index 1db1e4e2..fb104300 100644 --- a/test/contracts/Wallet.cpp +++ b/test/contracts/Wallet.cpp @@ -177,7 +177,7 @@ contract multiowned { return m_ownerIndex[uint(_addr)] > 0; } - function hasConfirmed(bytes32 _operation, address _owner) constant returns (bool) { + function hasConfirmed(bytes32 _operation, address _owner) view returns (bool) { PendingState pending = m_pending[_operation]; uint ownerIndex = m_ownerIndex[uint(_owner)]; @@ -319,7 +319,7 @@ contract daylimit is multiowned { return false; } // determines today's index. - function today() private constant returns (uint) { return now / 1 days; } + function today() private view returns (uint) { return now / 1 days; } // FIELDS |