Skip to content

Commit 7d4ccf9

Browse files
committed
Minor fix
1 parent 65497ec commit 7d4ccf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slither/solc_parsing/declarations/function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def _parse_for(self, statement: Dict, node: NodeSolc) -> NodeSolc:
597597

598598
if cond:
599599
cond_scope = Scope(node.underlying_node.scope.is_checked, False, last_scope)
600-
cond_scope = last_scope
600+
last_scope = cond_scope
601601
node_condition = self._new_node(NodeType.IFLOOP, cond["src"], cond_scope)
602602
node_condition.add_unparsed_expression(cond)
603603
link_underlying_nodes(node_startLoop, node_condition)

0 commit comments

Comments
 (0)