Skip to content

Commit

Permalink
feat: all done for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
talfao committed Mar 18, 2024
1 parent dff5e50 commit d6ac5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/detectors/oracles/oracle_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def investigate_on_return(self, oracle, var) -> bool:
for value in oracle.function.return_values:
if is_dependent(value, var, oracle.node):
return self.checks_performed_out_of_original_function(oracle, value)

return False

# This function interates through all internal calls in function and checks if the var is used in condition any of them
Expand Down Expand Up @@ -271,7 +271,7 @@ def investigate_internal_call(self, function: FunctionContract, var, original_fu
if self.investigate_internal_call(ir.function, original_var_as_param, function):
return True
return False

def _detect(self):
self.oracles = self.find_oracles(self.contracts)
for oracle in self.oracles:
Expand Down

0 comments on commit d6ac5cb

Please sign in to comment.