From e66db801a29962ee556982592b3f63f8ed86202e Mon Sep 17 00:00:00 2001 From: Josselin Date: Fri, 26 Apr 2019 19:16:42 +0100 Subject: [PATCH] function-ids printer: fix incorrect type in case of multi-dim arrays --- slither/printers/summary/function_ids.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/slither/printers/summary/function_ids.py b/slither/printers/summary/function_ids.py index 1c093d7c4..169a2a318 100644 --- a/slither/printers/summary/function_ids.py +++ b/slither/printers/summary/function_ids.py @@ -34,7 +34,12 @@ class FunctionIds(AbstractPrinter): if variable.visibility in ['public']: variable_getter_args = "" if type(variable.type) is ArrayType: - variable_getter_args = "uint256" + length = 0 + v = variable + while type(v.type) is ArrayType: + length += 1 + v = v.type + variable_getter_args = ','.join(["uint256"]*length) elif type(variable.type) is MappingType: variable_getter_args = variable.type.type_from