fix: valid condition for a script
This commit is contained in:
parent
6ccd0aa2fb
commit
caa88dab12
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue