From a24fc559939ccc20f02b15a6b6e3ab85c37c97cc Mon Sep 17 00:00:00 2001 From: Kasey White Date: Wed, 15 Feb 2023 03:06:58 -0500 Subject: [PATCH] Delay 2nd arg on trace in case it throws and prevents trace from printing --- crates/aiken-lang/src/uplc.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/aiken-lang/src/uplc.rs b/crates/aiken-lang/src/uplc.rs index f25b1e0b..5578c610 100644 --- a/crates/aiken-lang/src/uplc.rs +++ b/crates/aiken-lang/src/uplc.rs @@ -5644,8 +5644,9 @@ impl<'a> CodeGenerator<'a> { .into(), ), ), - term, - ); + Term::Delay(term.into()), + ) + .force_wrap(); arg_stack.push(term); }