return an issue list instead of appending to list

pull/994/head
Nikhil Parasaram 6 years ago
parent f5c73de411
commit 0820ca08c7
  1. 5
      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):

Loading…
Cancel
Save