From a608e2d85cddb25337743f1bb806f5fad51e7ac0 Mon Sep 17 00:00:00 2001 From: Omidiora Samuel <8148384+samparsky@users.noreply.github.com> Date: Mon, 22 Oct 2018 16:21:17 +0100 Subject: [PATCH] added more doc --- slither/detectors/functions/external_function.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/slither/detectors/functions/external_function.py b/slither/detectors/functions/external_function.py index b5086894f..41a02af7c 100644 --- a/slither/detectors/functions/external_function.py +++ b/slither/detectors/functions/external_function.py @@ -15,11 +15,11 @@ class ExternalFunction(AbstractDetector): @staticmethod def detect_function_calls(func): - """ Returns a list of InternallCall, InternalDynamicCall, SolidityCall + """ Returns a list of InternallCall, InternalDynamicCall, SolidityCall, HighLevelCall calls made in a function Returns: - (list): List of all InternallCall, InternalDynamicCall, SolidityCall + (list): List of all InternallCall, InternalDynamicCall, SolidityCall, HighLevelCall """ result = [] for node in func.nodes: @@ -40,7 +40,12 @@ class ExternalFunction(AbstractDetector): public_function_calls = [] for contract in self.slither.contracts_derived: + """ + Returns list of InternallCall, InternalDynamicCall, HighLevelCall, SolidityCall calls + in contract functions + """ func_list = self.detect_external(contract) + # appends the list to public function calls public_function_calls.extend(func_list) for c in self.contracts: