diff --git a/mythril/analysis/modules/dependence_on_predictable_vars.py b/mythril/analysis/modules/dependence_on_predictable_vars.py index 462c6eff..8a3b3b7b 100644 --- a/mythril/analysis/modules/dependence_on_predictable_vars.py +++ b/mythril/analysis/modules/dependence_on_predictable_vars.py @@ -66,7 +66,7 @@ def execute(statespace): function_name=call.node.function_name, address=address, swc_id=swc_type, - bytecode=state.environment.code.bytecode, + bytecode=call.state.environment.code.bytecode, title="Dependence on predictable environment variable", _type="Warning", description=description, @@ -144,7 +144,7 @@ def execute(statespace): contract=call.node.contract_name, function_name=call.node.function_name, address=address, - bytecode=state.environment.code.bytecode, + bytecode=call.state.environment.code.bytecode, title="Dependence on predictable variable", _type="Informational", description=description,