From 983677205ff7cbb9322f4e5a5c732295cdf9c5a1 Mon Sep 17 00:00:00 2001 From: Josselin Date: Fri, 18 Jan 2019 12:20:35 +0100 Subject: [PATCH] Improve support of user-defined function type (close #136) --- slither/solc_parsing/expressions/expression_parsing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py index f723df89b..1fe3a5322 100644 --- a/slither/solc_parsing/expressions/expression_parsing.py +++ b/slither/solc_parsing/expressions/expression_parsing.py @@ -551,6 +551,8 @@ def parse_expression(expression, caller_context): array_type = parse_type(UnknownType(type_name['name']), caller_context) else: array_type = parse_type(UnknownType(type_name['attributes']['name']), caller_context) + elif type_name[caller_context.get_key()] == 'FunctionTypeName': + array_type = parse_type(type_name, caller_context) else: logger.error('Incorrect type array {}'.format(type_name)) exit(-1)