From cc3377bd338e09586f9ddd830132620be4d46ff9 Mon Sep 17 00:00:00 2001 From: Josselin Date: Sat, 27 Jul 2019 22:31:29 +0200 Subject: [PATCH] Minor --- slither/core/declarations/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/core/declarations/function.py b/slither/core/declarations/function.py index c0f5b2687..b9e981375 100644 --- a/slither/core/declarations/function.py +++ b/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'