HasNoContracts.sol 560 B

123456789101112131415161718
  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. ///
  6. /// Should contracts (anything Ownable) end up being owned by
  7. /// this contract, it allows the owner of this contract to
  8. /// reclaim ownership of the contracts.
  9. contract HasNoContracts is Ownable {
  10. /// Reclaim ownership of Ownable contracts
  11. function reclaimContract(address contractAddr) external onlyOwner {
  12. Ownable contractInst = Ownable(contractAddr);
  13. contractInst.transferOwnership(owner);
  14. }
  15. }