From 7dbb1d496416a72de9d12965f652871afbe102ad Mon Sep 17 00:00:00 2001 From: Josselin Date: Tue, 23 Jun 2020 10:30:15 +0200 Subject: [PATCH] Fix incorrect modifier parsing --- slither/solc_parsing/declarations/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/solc_parsing/declarations/function.py b/slither/solc_parsing/declarations/function.py index 13c2363a9..4572c6766 100644 --- a/slither/solc_parsing/declarations/function.py +++ b/slither/solc_parsing/declarations/function.py @@ -1051,7 +1051,7 @@ class FunctionSolc: node_parser.add_unparsed_expression(modifier) # The latest entry point is the entry point, or the latest modifier call if self._function.modifiers: - latest_entry_point = self._function.modifiers[-1].nodes[-1] + latest_entry_point = self._function.modifiers_statements[-1].nodes[-1] else: latest_entry_point = self._function.entry_point insert_node(latest_entry_point, node_parser.underlying_node)