Merge pull request #996 from crytic/dev-improve-find_variable

Do not use available_functions_as_dict in find_variable
pull/999/head
Feist Josselin 3 years ago committed by GitHub
commit 74f9b104f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/solc_parsing/expressions/find_variable.py

@ -158,7 +158,7 @@ def _find_in_contract(
).values()
}
else:
functions = contract.available_functions_as_dict()
functions = {f.full_name: f for f in contract.functions if not f.is_shadowed}
if var_name in functions:
return functions[var_name]

Loading…
Cancel
Save