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.
21 lines
404 B
21 lines
404 B
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);
|
|
}
|
|
}
|
|
|
|
|