Add HasNoContracts

This commit is contained in:
Remco Bloemen
2017-03-23 15:43:52 +00:00
parent 94d3c447b7
commit 166a1070e5
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,18 @@
pragma solidity ^0.4.8;
import "./Ownable.sol";
/// @title Contracts that should not own Contracts
/// @author Remco Bloemen <remco@2π.com>
///
/// Should contracts (anything Ownable) end up being owned by
/// this contract, it allows the owner of this contract to
/// reclaim ownership of the contracts.
contract HasNoContracts is Ownable {
/// Reclaim ownership of Ownable contracts
function reclaimContract(address contractAddr) external onlyOwner {
Ownable contractInst = Ownable(contractAddr);
contractInst.transferOwnership(owner);
}
}