Files
openzeppelin-contracts/contracts/Claimable.sol
AugustoL c7eb6736ee DelayedClaimable contract with test added
Renamed DelayedClaimable function and modifier
2016-12-02 18:48:53 -03:00

34 lines
645 B
Solidity

<<<<<<< HEAD
pragma solidity ^0.4.0;
=======
pragma solidity ^0.4.4;
>>>>>>> 0aa4d02... DelayedClaimable contract with test added
import './Ownable.sol';
/*
* Claimable
*
* 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 public pendingOwner;
modifier onlyPendingOwner() {
if (msg.sender == pendingOwner)
_;
}
function transfer(address newOwner) onlyOwner {
pendingOwner = newOwner;
}
function claimOwnership() onlyPendingOwner {
owner = pendingOwner;
pendingOwner = 0x0;
}
}