fix: valid condition for a script

This commit is contained in:
rvcas 2022-09-19 16:00:25 -04:00
parent 6ccd0aa2fb
commit caa88dab12
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 1 additions and 1 deletions

View File

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