False positive on reentrancy detector when calling a view
function
#126
Labels
enhancement
New feature or request
Milestone
view
function
#126
When a method calls a
view
function on an external contract and then modifies state, one of Slither's reentrancy detectors trigger. See this minimal example [1] and the error Slither produces [2].A call to a view function should be safe against reentrancy bugs (as long as the Solidity version is ^0.5.0) because any calls back into the calling code will also be prevented from changing state, so this might be a false positive.
The text was updated successfully, but these errors were encountered: