Skip to content

Commit 678a045

Browse files
author
Zeph Grunschlag
committed
don't need root_expr in Continue or TealSimpleBlock
1 parent ec61f4d commit 678a045

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyteal/ast/continue_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __teal__(self, options: "CompileOptions"):
2828
if not options.isInLoop():
2929
raise TealCompileError("continue is only allowed in a loop", self)
3030

31-
start = TealSimpleBlock([], root_expr=self)
31+
start = TealSimpleBlock([])
3232
options.addLoopContinueBlock(start)
3333

3434
return start, start

pyteal/ir/tealsimpleblock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
class TealSimpleBlock(TealBlock):
66
"""Represents a basic block of TealComponents in a graph that does not contain a branch condition."""
77

8-
def __init__(self, ops: list[TealOp], root_expr: "Expr | None" = None) -> None: # type: ignore
9-
super().__init__(ops, root_expr=root_expr)
8+
def __init__(self, ops: list[TealOp]) -> None:
9+
super().__init__(ops)
1010
self.nextBlock: TealBlock | None = None
1111
self.visited = False
1212

0 commit comments

Comments
 (0)