converted if() throw convention to require()/assert()/revert()
This commit is contained in:
committed by
Francisco Giordano
parent
f3867f8477
commit
18581f138f
@ -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);
|
||||
_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user