aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/lifecycle/TokenDestructible.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/compilationTests/zeppelin/lifecycle/TokenDestructible.sol')
-rw-r--r--test/compilationTests/zeppelin/lifecycle/TokenDestructible.sol36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/compilationTests/zeppelin/lifecycle/TokenDestructible.sol b/test/compilationTests/zeppelin/lifecycle/TokenDestructible.sol
deleted file mode 100644
index eb141587..00000000
--- a/test/compilationTests/zeppelin/lifecycle/TokenDestructible.sol
+++ /dev/null
@@ -1,36 +0,0 @@
-pragma solidity ^0.4.11;
-
-
-import "../ownership/Ownable.sol";
-import "../token/ERC20Basic.sol";
-
-/**
- * @title TokenDestructible:
- * @author Remco Bloemen <remco@2π.com>
- * @dev Base contract that can be destroyed by owner. All funds in contract including
- * listed tokens will be sent to the owner.
- */
-contract TokenDestructible is Ownable {
-
- constructor() public payable { }
-
- /**
- * @notice Terminate contract and refund to owner
- * @param tokens List of addresses of ERC20 or ERC20Basic token contracts to
- refund.
- * @notice The called token contracts could try to re-enter this contract. Only
- supply token contracts you trust.
- */
- function destroy(address[] memory tokens) public onlyOwner {
-
- // Transfer tokens to owner
- for(uint256 i = 0; i < tokens.length; i++) {
- ERC20Basic token = ERC20Basic(tokens[i]);
- uint256 balance = token.balanceOf(address(this));
- token.transfer(owner, balance);
- }
-
- // Transfer Eth to owner and terminate contract
- selfdestruct(owner);
- }
-}