From add513790d5f10fd69a93156a240a307e06720b1 Mon Sep 17 00:00:00 2001 From: microproofs Date: Fri, 29 Sep 2023 22:01:43 -0400 Subject: [PATCH] hotfix: cyclic functions hoisted as a dependency used the wrong key to modify its own cyclic_calls --- crates/aiken-lang/src/gen_uplc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/aiken-lang/src/gen_uplc.rs b/crates/aiken-lang/src/gen_uplc.rs index fec7b212..6fa92e52 100644 --- a/crates/aiken-lang/src/gen_uplc.rs +++ b/crates/aiken-lang/src/gen_uplc.rs @@ -3236,7 +3236,7 @@ impl<'a> CodeGenerator<'a> { let mut functions = functions.clone(); for (_, body) in functions.iter_mut() { - modify_cyclic_calls(body, key, &self.cyclic_functions); + modify_cyclic_calls(body, &dep_key, &self.cyclic_functions); } dep_insertions.push(AirTree::define_cyclic_func(