Skip to content

Commit

Permalink
fix member of unit alias lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Apr 6, 2024
1 parent fc0d9ca commit e2d0047
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions slither/core/scope/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e2d0047

Please sign in to comment.