Do not use available_functions_as_dict in find_variable

The reason is that this function is now called early on (before the
contract is properly constructed), which can break the memoization
pull/996/head
Josselin 3 years ago
parent 1c127979d9
commit 3cb59c6c3a
  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