upgradeability check: remove FP in case of fallback function collision (fix #331)

pull/354/head
Josselin 5 years ago
parent ae31524d07
commit b9602fc6db
  1. 3
      slither/tools/upgradeability/compare_function_ids.py

@ -12,7 +12,8 @@ logger = logging.getLogger("Slither-check-upgradeability")
def get_signatures(c):
functions = c.functions
functions = [f.full_name for f in functions if f.visibility in ['public', 'external'] and not f.is_constructor]
functions = [f.full_name for f in functions if f.visibility in ['public', 'external'] and
not f.is_constructor and not f.is_fallback]
variables = c.state_variables
variables = [variable.name+ '()' for variable in variables if variable.visibility in ['public']]

Loading…
Cancel
Save