You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
542 B
30 lines
542 B
pragma solidity ^0.4.0;
|
|
|
|
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|