Skip to content

Instantly share code, notes, and snippets.

@frangio
Last active March 22, 2018 19:09
Show Gist options
  • Save frangio/766439bb76ddcd5c705f08c9de4d4210 to your computer and use it in GitHub Desktop.
Save frangio/766439bb76ddcd5c705f08c9de4d4210 to your computer and use it in GitHub Desktop.
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