Claimable.sol 483 B

1234567891011121314151617181920212223242526
  1. pragma solidity ^0.4.0;
  2. import './Ownable.sol';
  3. /*
  4. * Claimable
  5. * Extension for the Ownable contract, where the ownership needs to be claimed
  6. */
  7. contract Claimable is Ownable {
  8. address public pendingOwner;
  9. modifier onlyPendingOwner() {
  10. if (msg.sender == pendingOwner)
  11. _;
  12. }
  13. function transfer(address newOwner) onlyOwner {
  14. pendingOwner = newOwner;
  15. }
  16. function claimOwnership() onlyPendingOwner {
  17. owner = pendingOwner;
  18. pendingOwner = 0x0;
  19. }
  20. }