From 4b383362de43043d1cce2f7c43fc37c525df8b3b Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Mon, 13 Nov 2017 13:23:46 +0700 Subject: [PATCH] search parser update --- mythril/ether/ethcontract.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mythril/ether/ethcontract.py b/mythril/ether/ethcontract.py index a2dd2f47..5a5f3ffe 100644 --- a/mythril/ether/ethcontract.py +++ b/mythril/ether/ethcontract.py @@ -78,18 +78,16 @@ class ETHContract(persistent.Persistent): if (m): code = m.group(1).replace(",", "\\n") - str_eval += "\"" + code + "\" in easm_code" + " " + str_eval += "\"" + code + "\" in easm_code" continue m = re.match(r'^func#([a-fA-F0-9]+)#$', token) if (m): - str_eval += "\"" + m.group(1) + "\" in easm_code" + " " + str_eval += "\"" + m.group(1) + "\" in easm_code" continue - print(str_eval) - return eval(str_eval.strip())