From 1f10aafcd5a363296acea35fe14747145b53e975 Mon Sep 17 00:00:00 2001 From: Simone Date: Sun, 14 May 2023 13:38:17 +0200 Subject: [PATCH] FIx return variables shadowing compact AST --- slither/solc_parsing/declarations/function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slither/solc_parsing/declarations/function.py b/slither/solc_parsing/declarations/function.py index def68a8a3..5a29a9b50 100644 --- a/slither/solc_parsing/declarations/function.py +++ b/slither/solc_parsing/declarations/function.py @@ -774,6 +774,7 @@ class FunctionSolc(CallerContextExpression): "nodeType": "Identifier", "src": v["src"], "name": v["name"], + "referencedDeclaration": v["id"], "typeDescriptions": {"typeString": v["typeDescriptions"]["typeString"]}, } var_identifiers.append(identifier)