From bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 12 Jul 2018 00:49:00 +0100 Subject: Replace throw with revert() in compilation tests --- test/compilationTests/zeppelin/lifecycle/Pausable.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/compilationTests/zeppelin/lifecycle') diff --git a/test/compilationTests/zeppelin/lifecycle/Pausable.sol b/test/compilationTests/zeppelin/lifecycle/Pausable.sol index 4ffd281a..0c48f2f6 100644 --- a/test/compilationTests/zeppelin/lifecycle/Pausable.sol +++ b/test/compilationTests/zeppelin/lifecycle/Pausable.sol @@ -19,7 +19,7 @@ contract Pausable is Ownable { * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { - if (paused) throw; + if (paused) revert(); _; } @@ -27,7 +27,7 @@ contract Pausable is Ownable { * @dev modifier to allow actions only when the contract IS NOT paused */ modifier whenPaused { - if (!paused) throw; + if (!paused) revert(); _; } -- cgit v1.2.3