Remove evm redundant parentheses

pull/555/head
Dominik Muhs 6 years ago
parent 527dd0b1d8
commit 12f8460628
  1. 4
      mythril/ether/evm.py

@ -52,7 +52,7 @@ def trace(code, calldata=""):
stack = "[";
if (len(stackitems)):
if len(stackitems):
for i in range(0, len(stackitems) - 1):
stack += hex(int(stackitems[i])) + ", "
@ -64,7 +64,7 @@ def trace(code, calldata=""):
else:
stack = "[]"
if (re.match(r'^PUSH.*', op)):
if re.match(r'^PUSH.*', op):
val = re.search(r'pushvalue=(\d+)', line).group(1)
pushvalue = hex(int(val))
trace.append({'pc': pc, 'op': op, 'stack': stack, 'pushvalue': pushvalue})

Loading…
Cancel
Save