aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/ownership/Claimable.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/compilationTests/zeppelin/ownership/Claimable.sol')
-rw-r--r--test/compilationTests/zeppelin/ownership/Claimable.sol40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/compilationTests/zeppelin/ownership/Claimable.sol b/test/compilationTests/zeppelin/ownership/Claimable.sol
deleted file mode 100644
index 148ad535..00000000
--- a/test/compilationTests/zeppelin/ownership/Claimable.sol
+++ /dev/null
@@ -1,40 +0,0 @@
-pragma solidity ^0.4.11;
-
-
-import './Ownable.sol';
-
-
-/**
- * @title Claimable
- * @dev Extension for the Ownable contract, where the ownership needs to be claimed.
- * This allows the new owner to accept the transfer.
- */
-contract Claimable is Ownable {
- address payable public pendingOwner;
-
- /**
- * @dev Modifier throws if called by any account other than the pendingOwner.
- */
- modifier onlyPendingOwner() {
- if (msg.sender != pendingOwner) {
- revert();
- }
- _;
- }
-
- /**
- * @dev Allows the current owner to set the pendingOwner address.
- * @param newOwner The address to transfer ownership to.
- */
- function transferOwnership(address payable newOwner) public onlyOwner {
- pendingOwner = newOwner;
- }
-
- /**
- * @dev Allows the pendingOwner address to finalize the transfer.
- */
- function claimOwnership() public onlyPendingOwner {
- owner = pendingOwner;
- pendingOwner = address(0x0);
- }
-}