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)