Last active
March 22, 2018 19:09
-
-
Save frangio/766439bb76ddcd5c705f08c9de4d4210 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.21; | |
contract PausableHook { | |
modifier pausable() { | |
_; | |
} | |
} | |
contract Pausable is PausableHook { | |
bool private paused; | |
function pause() external { | |
paused = true; | |
} | |
modifier pausable() { | |
require(!paused); | |
_; | |
} | |
} | |
contract Foo is PausableHook { | |
function foo() external pausable { | |
} | |
} | |
contract PausableFoo is Foo, Pausable { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment