Ignore failed contract creations

pull/419/head
Joran Honig 6 years ago
parent 17410661e1
commit ce89fc810d
  1. 1
      mythril/laser/ethereum/svm.py

@ -122,6 +122,7 @@ class LaserEVM:
transaction, return_global_state = e.global_state.transaction_stack.pop() transaction, return_global_state = e.global_state.transaction_stack.pop()
if return_global_state is None: if return_global_state is None:
if not isinstance(transaction, ContractCreationTransaction) or transaction.return_data:
e.global_state.world_state.node = global_state.node e.global_state.world_state.node = global_state.node
self.open_states.append(e.global_state.world_state) self.open_states.append(e.global_state.world_state)
new_global_states = [] new_global_states = []

Loading…
Cancel
Save