HasNoContracts.sol 652 B

1234567891011121314151617181920
  1. pragma solidity ^0.4.8;
  2. import "./Ownable.sol";
  3. /** @title Contracts that should not own Contracts
  4. * @author Remco Bloemen <remco@2π.com>
  5. * @dev Should contracts (anything Ownable) end up being owned by this contract, it allows the owner of this contract to reclaim ownership of the contracts.
  6. */
  7. contract HasNoContracts is Ownable {
  8. /**
  9. * @dev Reclaim ownership of Ownable contracts
  10. * @param contractAddr address The Ownable contract address wished to
  11. be reclaimed
  12. */
  13. function reclaimContract(address contractAddr) external onlyOwner {
  14. Ownable contractInst = Ownable(contractAddr);
  15. contractInst.transferOwnership(owner);
  16. }
  17. }