* Update to ganache-cli v6.1.0 and truffle v4.1.0 * Update to stable version of ganache-cli * fix: update event emission warning - Fix event emission warnings for solidity 4.21 after truffle has been updated to use this version * fix pr review comments * update to truffle v4.1.5 * update package-lock * add additional emit keywords * update solidity-coverage to 0.4.15 * update to solium 1.1.6 * fix MerkleProof coverage analysis by testing through wrapper * change version pragma to ^0.4.21 * fix solium linting errors
23 lines
648 B
Solidity
23 lines
648 B
Solidity
pragma solidity ^0.4.21;
|
|
|
|
import "./Ownable.sol";
|
|
|
|
|
|
/**
|
|
* @title Contracts that should not own Contracts
|
|
* @author Remco Bloemen <remco@2π.com>
|
|
* @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.
|
|
*/
|
|
contract HasNoContracts is Ownable {
|
|
|
|
/**
|
|
* @dev Reclaim ownership of Ownable contracts
|
|
* @param contractAddr The address of the Ownable to be reclaimed.
|
|
*/
|
|
function reclaimContract(address contractAddr) external onlyOwner {
|
|
Ownable contractInst = Ownable(contractAddr);
|
|
contractInst.transferOwnership(owner);
|
|
}
|
|
}
|