add is_fallback parameter

pull/282/head
Ankur Sundara 6 years ago
parent 5d6ab217a8
commit 9f8340e743
  1. 8
      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
###################################################################################
###################################################################################

Loading…
Cancel
Save