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) } }