pull/536/head^2
Nikhil Parasaram 6 years ago
parent 326ed24403
commit c37bef3a33
  1. 5
      mythril/analysis/modules/dependence_on_predictable_vars.py

@ -56,10 +56,7 @@ def execute(statespace):
for item in found:
description += "- block.{}\n".format(item)
if solve(call):
if item == 'timestamp':
swc_type = TIMESTAMP_DEPENDENCE
else:
swc_type = PREDICTABLE_VARS_DEPENDENCE
swc_type = TIMESTAMP_DEPENDENCE if item == 'timestamp' else PREDICTABLE_VARS_DEPENDENCE
issue = Issue(contract=call.node.contract_name, function=call.node.function_name, address=address,
swc_id=swc_type, title="Dependence on predictable environment variable",
_type="Warning", description=description)

Loading…
Cancel
Save