diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-12 07:49:00 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-16 21:33:31 +0800 |
commit | bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6 (patch) | |
tree | db49e85ba17521aa55af555ab7b064894e587fbb /test/compilationTests/zeppelin/ownership/DelayedClaimable.sol | |
parent | aa08460d94f0e3ac8e067f89786175fb5ebba73b (diff) | |
download | dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.gz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.bz2 dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.lz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.xz dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.tar.zst dexon-solidity-bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6.zip |
Replace throw with revert() in compilation tests
Diffstat (limited to 'test/compilationTests/zeppelin/ownership/DelayedClaimable.sol')
-rw-r--r-- | test/compilationTests/zeppelin/ownership/DelayedClaimable.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compilationTests/zeppelin/ownership/DelayedClaimable.sol b/test/compilationTests/zeppelin/ownership/DelayedClaimable.sol index f019d2f1..540a2ce0 100644 --- a/test/compilationTests/zeppelin/ownership/DelayedClaimable.sol +++ b/test/compilationTests/zeppelin/ownership/DelayedClaimable.sol @@ -22,7 +22,7 @@ contract DelayedClaimable is Claimable { */ function setLimits(uint256 _start, uint256 _end) public onlyOwner { if (_start > _end) - throw; + revert(); end = _end; start = _start; } @@ -34,7 +34,7 @@ contract DelayedClaimable is Claimable { */ function claimOwnership() public onlyPendingOwner { if ((block.number > end) || (block.number < start)) - throw; + revert(); owner = pendingOwner; pendingOwner = address(0x0); end = 0; |