Require regex on storage to end on an integer

pull/273/head
Joran Honig 7 years ago
parent 3e3df2562d
commit 7adcb45b57
  1. 2
      mythril/analysis/modules/transaction_order_independence.py

@ -54,7 +54,7 @@ def _get_states_with_opcode(statespace, opcode):
def _dependent_on_storage(expression):
""" Checks if expression is dependent on a storage symbol and returns the influencing storages"""
pattern = re.compile(r"storage_[a-z0-9_&^]+")
pattern = re.compile(r"storage_[a-z0-9_&^]*[0-9]+")
return pattern.findall(str(simplify(expression)))

Loading…
Cancel
Save