From 17ef07f5039a1e58f20a6b89bcf4037c86f912ed Mon Sep 17 00:00:00 2001 From: Maximilian Krueger Date: Tue, 15 Dec 2020 11:09:59 -0600 Subject: [PATCH] expression_parsing: parse member type instead of leaving as raw str --- slither/solc_parsing/expressions/expression_parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py index fbec11f8c..ee3f17e13 100644 --- a/slither/solc_parsing/expressions/expression_parsing.py +++ b/slither/solc_parsing/expressions/expression_parsing.py @@ -674,11 +674,11 @@ def parse_expression(expression: Dict, caller_context: CallerContext) -> "Expres if name == "MemberAccess": if caller_context.is_compact_ast: member_name = expression["memberName"] - member_type = expression["typeDescriptions"]["typeString"] + member_type = parse_type(UnknownType(expression["typeDescriptions"]["typeString"]), caller_context) member_expression = parse_expression(expression["expression"], caller_context) else: member_name = expression["attributes"]["member_name"] - member_type = expression["attributes"]["type"] + member_type = parse_type(UnknownType(expression["attributes"]["type"]), caller_context) children = expression["children"] assert len(children) == 1 member_expression = parse_expression(children[0], caller_context)