claimBefore modifier removed on DelayedClaimable contract

This commit is contained in:
AugustoL
2016-12-07 18:32:42 -03:00
parent c7eb6736ee
commit 423cec41e3
2 changed files with 13 additions and 16 deletions

View File

@ -10,16 +10,12 @@ import './Claimable.sol';
contract DelayedClaimable is Ownable, Claimable {
uint public claimBeforeBlock;
modifier claimBefore() {
if (block.number < claimBeforeBlock)
_;
}
function setClaimBefore(uint _claimBeforeBlock) onlyOwner {
claimBeforeBlock = _claimBeforeBlock;
}
function claimOwnership() onlyPendingOwner claimBefore {
function claimOwnership() onlyPendingOwner {
if (block.number > claimBeforeBlock) throw;
owner = pendingOwner;
pendingOwner = 0x0;
claimBeforeBlock = 0;