fix: valid condition for a script

This commit is contained in:
rvcas
2022-09-19 16:00:25 -04:00
parent 6ccd0aa2fb
commit caa88dab12

View File

@@ -559,6 +559,6 @@ impl Program<DeBruijn> {
impl Term<NamedDeBruijn> {
pub fn is_valid_script_result(&self) -> bool {
matches!(self, Term::Constant(Constant::Unit))
!matches!(self, Term::Error)
}
}