Skip to content

Commit

Permalink
Update slither/detectors/assembly/incorrect_return.py
Browse files Browse the repository at this point in the history
Co-authored-by: alpharush <0xalpharush@protonmail.com>
  • Loading branch information
montyly and 0xalpharush authored Oct 5, 2023
1 parent 7007949 commit 561a6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/detectors/assembly/incorrect_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class IncorrectReturn(AbstractDetector):
def _detect(self) -> List[Output]:
results: List[Output] = []
for c in self.contracts:
for f in c.functions_declared:
for f in c.functions_and_modifiers_declared:

for node in f.nodes:
if node.sons:
Expand Down

0 comments on commit 561a6f8

Please sign in to comment.