From 0820ca08c75a099a29a071573b15913d1fbbbf61 Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Thu, 28 Mar 2019 15:54:02 +0530 Subject: [PATCH] return an issue list instead of appending to list --- mythril/analysis/modules/external_calls.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mythril/analysis/modules/external_calls.py b/mythril/analysis/modules/external_calls.py index d8abf006..be708062 100644 --- a/mythril/analysis/modules/external_calls.py +++ b/mythril/analysis/modules/external_calls.py @@ -33,7 +33,6 @@ def _analyze_state(state): node = state.node gas = state.mstate.stack[-1] to = state.mstate.stack[-2] - issues = [] address = state.get_current_instruction()["address"] call = get_call_from_state(state) @@ -105,8 +104,8 @@ def _analyze_state(state): except UnsatError: log.debug("[EXTERNAL_CALLS] No model found.") return [] - issues.append(issue) - return issues + + return [issue] class ExternalCalls(DetectionModule):