Add some documentation

pull/1220/head
Nikhil 5 years ago
parent dba325272d
commit 851fb8ff5b
  1. 2
      mythril/analysis/solver.py

@ -146,6 +146,8 @@ def _replace_with_actual_sha(
else:
s_index = 10
for i in range(s_index, len(tx["input"]), 64):
# We can do this because the data is aligned as blocks of 32 bytes
# For more info https://solidity.readthedocs.io/en/v0.5.12/abi-spec.html,
data_slice = tx["input"][i : i + 64]
if hash_matcher not in data_slice or len(data_slice) != 64:
continue

Loading…
Cancel
Save