Check on active account vs environment (which is shallow copied)

pull/375/head^2
Joran Honig 6 years ago
parent 2c052cb40e
commit 7c839b9825
  1. 2
      mythril/laser/ethereum/taint_analysis.py

@ -118,7 +118,7 @@ class TaintRunner:
direct_children = [statespace.nodes[edge.node_to] for edge in statespace.edges if edge.node_from == node.uid] direct_children = [statespace.nodes[edge.node_to] for edge in statespace.edges if edge.node_from == node.uid]
children = [] children = []
for child in direct_children: for child in direct_children:
if child.states[0].environment == environment: if child.states[0].environment.active_account == environment.active_account:
children.append(child) children.append(child)
else: else:
children += TaintRunner.children(child, statespace, environment) children += TaintRunner.children(child, statespace, environment)

Loading…
Cancel
Save