pull/1029/head
Bernhard Mueller 6 years ago
parent 409d2171ca
commit 444cee6494
  1. 7
      mythril/analysis/modules/dependence_on_predictable_vars.py

@ -74,17 +74,14 @@ def _analyze_states(state: GlobalState) -> list:
issue = Issue( issue = Issue(
contract=state.environment.active_account.contract_name, contract=state.environment.active_account.contract_name,
function_name=state.environment.active_function_name, function_name=state.environment.active_function_name,
address=state.get_current_instruction()['address'], address=state.get_current_instruction()["address"],
swc_id=swc_id, swc_id=swc_id,
bytecode=state.environment.code.bytecode, bytecode=state.environment.code.bytecode,
title="Dependence on predictable environment variable", title="Dependence on predictable environment variable",
severity="Low", severity="Low",
description_head="A control flow decision is made based on a predictable variable.", description_head="A control flow decision is made based on a predictable variable.",
description_tail=description, description_tail=description,
gas_used=( gas_used=(state.mstate.min_gas_used, state.mstate.max_gas_used),
state.mstate.min_gas_used,
state.mstate.max_gas_used,
),
) )
issues.append(issue) issues.append(issue)

Loading…
Cancel
Save