Skip to content

Commit

Permalink
fix: undefined varible
Browse files Browse the repository at this point in the history
  • Loading branch information
talfao committed Feb 24, 2024
1 parent dc67a70 commit c65e887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/detectors/oracles/supported_oracles/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def check_staleness(self, var: VarInCondition) -> bool:
# This is temporarily check which will be improved in the future. Mostly we are looking for block.timestamp and trust the developer that he is using it correctly
if self.timestamp_in_node(node):
return True
if not different_behavior:
different_behavior = check_revert(node) or return_boolean(node)
if not different_behavior:
different_behavior = check_revert(node) or return_boolean(node)

return different_behavior

Expand Down

0 comments on commit c65e887

Please sign in to comment.