Skip to content

Commit

Permalink
Update slither/core/cfg/node.py
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
montyly and github-actions[bot] authored Oct 2, 2024
1 parent d1bf27a commit 7e3f9c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slither/core/cfg/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ def contains_require_or_assert(self) -> bool:
bool: True if the node has a require or assert call
"""
return any(
ir.function.name in ["require(bool)", "require(bool,string)", "require(bool,error)", "assert(bool)"]
ir.function.name
in ["require(bool)", "require(bool,string)", "require(bool,error)", "assert(bool)"]
for ir in self.internal_calls
)

Expand Down

0 comments on commit 7e3f9c5

Please sign in to comment.