search parser update

pull/30/head
Bernhard Mueller 7 years ago
parent 81da276a4f
commit 4b383362de
  1. 6
      mythril/ether/ethcontract.py

@ -78,18 +78,16 @@ class ETHContract(persistent.Persistent):
if (m): if (m):
code = m.group(1).replace(",", "\\n") code = m.group(1).replace(",", "\\n")
str_eval += "\"" + code + "\" in easm_code" + " " str_eval += "\"" + code + "\" in easm_code"
continue continue
m = re.match(r'^func#([a-fA-F0-9]+)#$', token) m = re.match(r'^func#([a-fA-F0-9]+)#$', token)
if (m): if (m):
str_eval += "\"" + m.group(1) + "\" in easm_code" + " " str_eval += "\"" + m.group(1) + "\" in easm_code"
continue continue
print(str_eval)
return eval(str_eval.strip()) return eval(str_eval.strip())

Loading…
Cancel
Save