From 6bbab6855a12cabec3f22cf7fcbcde8408c3b9c3 Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Thu, 5 Jul 2018 11:30:28 +0200 Subject: [PATCH] Add return statement --- mythril/laser/ethereum/call.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mythril/laser/ethereum/call.py b/mythril/laser/ethereum/call.py index 23145b9e..483894ce 100644 --- a/mythril/laser/ethereum/call.py +++ b/mythril/laser/ethereum/call.py @@ -111,10 +111,13 @@ def get_callee_account(global_state, callee_address, dynamic_loader): if code is None: logging.info("No code returned, not a contract account?") raise ValueError() + logging.info("Dependency loaded: " + callee_address) - accounts[callee_address] = Account(callee_address, code, callee_address) + callee_account = Account(callee_address, code, callee_address) + accounts[callee_address] = callee_account + + return callee_account - logging.info("Dependency loaded: " + callee_address) def get_call_data(global_state, memory_start, memory_size, pad=True):