Skip to content

Commit

Permalink
fixed: pausable printer includes checks on constructor()
Browse files Browse the repository at this point in the history
  • Loading branch information
aga7hokakological committed Apr 5, 2023
1 parent fa4ca2c commit 82960f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/printers/summary/when_not_paused.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@


def _use_modifier(function: Function, modifier_name: str = "whenNotPaused") -> bool:
if function.is_constructor or function.view or function.pure:
return False

for internal_call in function.all_internal_calls():
if isinstance(internal_call, SolidityFunction):
Expand Down Expand Up @@ -46,6 +44,8 @@ def output(self, _filename: str) -> output.Output:
table = MyPrettyTable(["Name", "Use whenNotPaused"])

for function in contract.functions_entry_points:
if function.is_constructor or function.view or function.pure:
continue
status = "X" if _use_modifier(function, modifier_name) else ""
table.add_row([function.solidity_signature, status])

Expand Down

0 comments on commit 82960f3

Please sign in to comment.