Correct set expire condition in contract
This commit is contained in:
parent
92216df990
commit
7c6493357d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -106,7 +106,7 @@ contract CappedToken {
|
||||
|
||||
function setExpire(uint256 _timestamp) public {
|
||||
require(!isSealed(EXPIRY_STATE), "ERR_SEALED");
|
||||
require(_timestamp < block.timestamp, "ERR_EXPIRE_PAST");
|
||||
require(_timestamp > block.timestamp, "ERR_EXPIRE_PAST");
|
||||
uint256 oldTimestamp;
|
||||
|
||||
oldTimestamp = expires;
|
||||
|
Loading…
Reference in New Issue
Block a user