From 05747d6c75a0caeee3ffd08a180dc257c6f658e6 Mon Sep 17 00:00:00 2001 From: Maximilian Krueger Date: Mon, 4 Jan 2021 17:37:16 -0600 Subject: [PATCH] fix that Function.can_send_eth() sometimes returns None when it's supposed to return bool --- slither/core/declarations/function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slither/core/declarations/function.py b/slither/core/declarations/function.py index 195333ca1..824c28c19 100644 --- a/slither/core/declarations/function.py +++ b/slither/core/declarations/function.py @@ -305,6 +305,7 @@ class Function(metaclass=ABCMeta): # pylint: disable=too-many-public-methods from slither.slithir.operations import Call if self._can_send_eth is None: + self._can_send_eth = False for ir in self.all_slithir_operations(): if isinstance(ir, Call) and ir.can_send_eth(): self._can_send_eth = True