Static Analyzer for Solidity
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.
 
 
 
 
slither/tests/e2e/detectors/test_data/timestamp/0.6.11/timestamp.sol

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);
}
}