Renamed DelayedClaimable function and modifier

This commit is contained in:
AugustoL
2016-11-19 10:51:34 -03:00
parent 85a4013f49
commit 475cb5dc1f
2 changed files with 16 additions and 16 deletions

View File

@ -4,25 +4,25 @@ import './Claimable.sol';
/*
* DelayedClaimable
* Extension for the Claimable contract, where the ownership needs to be claimed before certain time
* Extension for the Claimable contract, where the ownership needs to be claimed before certain block number
*/
contract DelayedClaimable is Ownable, Claimable {
uint public claimBefore;
uint public claimBeforeBlock;
modifier onTime() {
if (block.number < claimBefore)
modifier claimBefore() {
if (block.number < claimBeforeBlock)
_;
}
function setDelay(uint _claimBefore) onlyOwner {
claimBefore = _claimBefore;
function setClaimBefore(uint _claimBeforeBlock) onlyOwner {
claimBeforeBlock = _claimBeforeBlock;
}
function claimOwnership() onlyPendingOwner onTime {
function claimOwnership() onlyPendingOwner claimBefore {
owner = pendingOwner;
pendingOwner = 0x0;
claimBefore = 0;
claimBeforeBlock = 0;
}
}