mirror of
https://github.com/status-im/gitpivot.git
synced 2026-08-27 16:41:08 +00:00
25 lines
603 B
Solidity
25 lines
603 B
Solidity
pragma solidity ^0.4.17;
|
|
|
|
import "./BasicSystemStorage.sol";
|
|
|
|
|
|
/**
|
|
* @title KillableModel
|
|
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
|
|
* @dev A contract model that can be killed by a watchdog
|
|
*/
|
|
contract KillableModel is BasicSystemStorage {
|
|
|
|
/**
|
|
* @dev Library contract constructor initialize watchdog, able to kill the Library in case of
|
|
*/
|
|
function KillableModel(address _watchdog) public {
|
|
watchdog = _watchdog;
|
|
}
|
|
|
|
function emergencyStop() public {
|
|
require(msg.sender == watchdog);
|
|
selfdestruct(watchdog);
|
|
}
|
|
|
|
} |