From 97db569b9bda9cbdb17863cfd68d4af1970a1811 Mon Sep 17 00:00:00 2001 From: radrow Date: Sun, 3 Jul 2022 17:32:05 +0200 Subject: [PATCH] . --- src/aeso_fcode_to_fate.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index a856426..79c6625 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -1620,7 +1620,7 @@ fresh_block(C, Ca) -> block(#blk{ref = Ref, code = []}, CodeAcc, Blocks, BlockAcc) -> blocks(Blocks, [{Ref, lists:reverse(CodeAcc)} | BlockAcc]); block(Blk = #blk{code = [{loop, Init, _, Expr, ContRef, BreakRef} | Code], catchall = Catchall}, Acc, Blocks, BlockAcc) -> - LoopBlock = #blk{ref = ContRef, code = Expr, catchall = BreakRef}, + LoopBlock = #blk{ref = ContRef, code = Expr, catchall = none}, BreakBlock = #blk{ref = BreakRef, code = Code, catchall = Catchall}, io:format("INIT: ~p\n\nLOOP: ~p\n\nBREAK: ~p\n\n", [Init, Expr, Code]),