Merge pull request #884 from ConsenSys/bugfix/877

Add the return constraints to global state
pull/888/head
Nikhil Parasaram 6 years ago committed by GitHub
commit bb14aca266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      mythril/laser/ethereum/svm.py

@ -320,9 +320,8 @@ class LaserEVM:
else:
# First execute the post hook for the transaction ending instruction
self._execute_post_hook(op_code, [end_signal.global_state])
new_global_states = self._end_message_call(
return_global_state,
copy(return_global_state),
global_state,
revert_changes=False or end_signal.revert,
return_data=transaction.return_data,
@ -347,6 +346,8 @@ class LaserEVM:
:param return_data:
:return:
"""
return_global_state.mstate.constraints += global_state.mstate.constraints
# Resume execution of the transaction initializing instruction
op_code = return_global_state.environment.code.instruction_list[
return_global_state.mstate.pc

Loading…
Cancel
Save