diff --git a/slither/utils/inheritance_analysis.py b/slither/utils/inheritance_analysis.py index 1173dbe53..95d15879f 100644 --- a/slither/utils/inheritance_analysis.py +++ b/slither/utils/inheritance_analysis.py @@ -102,7 +102,8 @@ class InheritanceAnalysis: shadows = InheritanceAnalysis.detect_c3_function_shadowing(contract) for colliding_functions in shadows: for i in range(0, len(colliding_functions) - 1): - results.add((colliding_functions[i + 1][0], colliding_functions[i + 1][1], - colliding_functions[i][0], colliding_functions[i][1])) + if colliding_functions[i][1] != colliding_functions[-1][1]: + results.add((colliding_functions[-1][0], colliding_functions[-1][1], + colliding_functions[i][0], colliding_functions[i][1])) return results