Skip to content

Commit

Permalink
Extract multiple assert in a single function
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Oct 24, 2024
1 parent 1bbc13b commit 537ee27
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion slither/printers/guidance/echidna.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ def _extract_assert(contracts: List[Contract]) -> Dict[str, Dict[str, List[Dict]
if ir.function == SolidityFunction("assert(bool)") and ir.node.source_mapping:
func_name = _get_name(f)
functions_using_assert[func_name].append(ir.node.source_mapping.to_json())
break
if functions_using_assert:
ret[contract.name] = functions_using_assert
return ret
Expand Down

0 comments on commit 537ee27

Please sign in to comment.