pull/295/head
Josselin 5 years ago
parent 3805fdf6df
commit cc3377bd33
  1. 2
      slither/core/declarations/function.py

@ -143,7 +143,7 @@ class Function(ChildContract, ChildInheritance, SourceMapping):
"""
str: function name
"""
if self._function_type == FunctionType.CONSTRUCTOR:
if self._name == '' and self._function_type == FunctionType.CONSTRUCTOR:
return 'constructor'
elif self._function_type == FunctionType.FALLBACK:
return 'fallback'

Loading…
Cancel
Save