Merge pull request #311 from JoranHonig/bugfix/missing_return

bugfix: Add return statement to function
pull/313/head
Nikhil Parasaram 6 years ago committed by GitHub
commit 96193a01e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      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):

Loading…
Cancel
Save