From e2d00474ad8b635d076a74727b70bbd613c8b10a Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Sat, 6 Apr 2024 16:43:22 -0500 Subject: [PATCH] fix member of unit alias lookup --- slither/core/scope/scope.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slither/core/scope/scope.py b/slither/core/scope/scope.py index 62f33f901..cac9311e5 100644 --- a/slither/core/scope/scope.py +++ b/slither/core/scope/scope.py @@ -116,9 +116,10 @@ def add_accessible_scopes(self) -> bool: # pylint: disable=too-many-branches # if not _dict_contain(new_scope.variables, self.variables): # self.variables.update(new_scope.variables) # learn_something = True - # if not _dict_contain(new_scope.renaming, self.renaming): - # self.renaming.update(new_scope.renaming) - # learn_something = True + # This is need to support aliasing when we do a late lookup using SolidityImportPlaceholder + if not _dict_contain(new_scope.renaming, self.renaming): + self.renaming.update(new_scope.renaming) + learn_something = True return learn_something