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.
36 lines
703 B
36 lines
703 B
2 years ago
|
contract TestReentrant{
|
||
|
|
||
|
modifier nonReentrant(){
|
||
|
_;
|
||
|
}
|
||
|
|
||
|
function is_reentrant() public{
|
||
|
internal_and_could_be_reentrant();
|
||
|
internal_and_reentrant();
|
||
|
}
|
||
|
|
||
|
function is_non_reentrant() nonReentrant() public{
|
||
|
internal_and_could_be_reentrant();
|
||
|
internal_and_not_reentrant2();
|
||
|
}
|
||
|
|
||
|
function internal_and_not_reentrant() nonReentrant() internal{
|
||
|
|
||
|
}
|
||
|
|
||
|
function internal_and_not_reentrant2() internal{
|
||
|
|
||
|
}
|
||
|
|
||
|
// Called by a protected and unprotected function
|
||
|
function internal_and_could_be_reentrant() internal{
|
||
|
|
||
|
}
|
||
|
|
||
|
// Called by a protected and unprotected function
|
||
|
function internal_and_reentrant() internal{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|