mirror of https://github.com/crytic/slither
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.
22 lines
404 B
22 lines
404 B
6 years ago
|
contract Timestamp{
|
||
|
event Time(uint);
|
||
|
|
||
|
function bad0() external{
|
||
|
require(block.timestamp == 0);
|
||
|
}
|
||
|
|
||
|
function bad1() external{
|
||
|
uint time = block.timestamp;
|
||
|
require(time == 0);
|
||
|
}
|
||
|
|
||
|
function bad2() external returns(bool){
|
||
|
return block.timestamp>0;
|
||
|
}
|
||
|
|
||
|
function good() external returns(uint){
|
||
|
emit Time(block.timestamp);
|
||
|
}
|
||
|
}
|
||
|
|