From caa88dab126a932a4eb8023ab472148743f8268b Mon Sep 17 00:00:00 2001 From: rvcas Date: Mon, 19 Sep 2022 16:00:25 -0400 Subject: [PATCH] fix: valid condition for a script --- crates/uplc/src/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uplc/src/ast.rs b/crates/uplc/src/ast.rs index dbfcc2c8..f1c5b81d 100644 --- a/crates/uplc/src/ast.rs +++ b/crates/uplc/src/ast.rs @@ -559,6 +559,6 @@ impl Program { impl Term { pub fn is_valid_script_result(&self) -> bool { - matches!(self, Term::Constant(Constant::Unit)) + !matches!(self, Term::Error) } }