Refactor loop to use enumerate

pull/555/head
Dominik Muhs 6 years ago
parent 3d4484811a
commit 4dfff5fb2b
  1. 6
      mythril/laser/ethereum/instructions.py

@ -709,10 +709,8 @@ class Instruction:
# Attempt to concretize value
_bytes = util.concrete_int_to_bytes(value)
i = 0
for b in _bytes:
state.memory[mstart + i] = _bytes[i]
i += 1
for i, b in enumerate(_bytes):
state.memory[mstart + i] = b
except:
try:
state.memory[mstart] = value

Loading…
Cancel
Save