Skip to content

Commit

Permalink
Remove unnecessary Check event (#1277)
Browse files Browse the repository at this point in the history
* fix typo in `--help` output for `--print` flag (#1149)

* fix: #1275

Co-authored-by: Erick <[email protected]>
  • Loading branch information
h00p30 and edag94 authored Jul 25, 2022
1 parent ad60e5e commit 63a154f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion slither/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def parse_args(detector_classes, printer_classes): # pylint: disable=too-many-s

group_printer.add_argument(
"--print",
help="Comma-separated list fo contract information printers, "
help="Comma-separated list of contract information printers, "
f"available printers: {', '.join(d.ARGUMENT for d in printer_classes)}",
action="store",
dest="printers_to_run",
Expand Down
7 changes: 4 additions & 3 deletions slither/tools/erc_conformance/erc/ercs.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ def generic_erc_checks(contract, erc_functions, erc_events, ret, explored=None):
logger.info("## Check functions")
for erc_function in erc_functions:
_check_signature(erc_function, contract, ret)
logger.info("\n## Check events")
for erc_event in erc_events:
_check_events(erc_event, contract, ret)
if erc_events:
logger.info("\n## Check events")
for erc_event in erc_events:
_check_events(erc_event, contract, ret)

logger.info("\n")

Expand Down

0 comments on commit 63a154f

Please sign in to comment.