converted if() throw convention to require()/assert()/revert()

This commit is contained in:
Peter Murray
2017-07-09 13:57:43 -04:00
committed by Francisco Giordano
parent f3867f8477
commit 18581f138f
17 changed files with 87 additions and 132 deletions

View File

@ -19,7 +19,7 @@ contract Pausable is Ownable {
* @dev modifier to allow actions only when the contract IS paused
*/
modifier whenNotPaused() {
if (paused) throw;
require(!paused);
_;
}
@ -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;
require(paused);
_;
}