mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace throw with revert() in compilation tests
This commit is contained in:
committed by
chriseth
parent
aa08460d94
commit
bdac82ecdb
@@ -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();
|
||||
_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user