Return a list of global_states

pull/1275/head
Nikhil Parasaram 5 years ago
parent 58b2522607
commit 64e02f3726
  1. 4
      mythril/laser/ethereum/instructions.py

@ -1648,7 +1648,7 @@ class Instruction:
def _create_transaction_helper(
self, global_state, call_value, mem_offset, mem_size, create2_salt=None
):
) -> List[GlobalState]:
mstate = global_state.mstate
environment = global_state.environment
world_state = global_state.world_state
@ -1673,7 +1673,7 @@ class Instruction:
if len(code_raw) < 1:
global_state.mstate.stack.append(1)
log.debug("No code found for trying to execute a create type instruction.")
return global_state
return [global_state]
code_str = bytes.hex(bytes(code_raw))

Loading…
Cancel
Save