Minor improvements to user_assertions.py

harvey_style_assertions
Nathan 5 years ago
parent 2a34a5d712
commit bd8c3f8cd4
  1. 9
      mythril/analysis/modules/user_assertions.py

@ -55,14 +55,9 @@ class UserAssertions(DetectionModule):
:param state: :param state:
:return: :return:
""" """
mem_start = state.mstate.stack[-1] topic, size, mem_start = state.mstate.stack[-3:]
size = state.mstate.stack[-2]
topic = state.mstate.stack[-3]
if topic.symbolic: if topic.symbolic or topic.value != assertion_failed_hash:
return []
if topic.value != assertion_failed_hash:
return [] return []
message = None message = None

Loading…
Cancel
Save