diff --git a/slither/core/declarations/function.py b/slither/core/declarations/function.py index 1f7247102..b5fa6712c 100644 --- a/slither/core/declarations/function.py +++ b/slither/core/declarations/function.py @@ -986,6 +986,14 @@ class Function(ChildContract, ChildInheritance, SourceMapping): args_vars = self.all_solidity_variables_used_as_args() return SolidityVariableComposed('msg.sender') in conditional_vars + args_vars + def is_fallback(self): + """ + Determine if the function is the fallback function for the contract + Returns + (bool) + """ + return self._name == "" and not self.is_constructor + # endregion ################################################################################### ###################################################################################