Fix codegen for binary operator 'or'
a && b → if a { b } else { false } a || b → if a { true } else { b }
This commit is contained in:
parent
431b0cfcf2
commit
18bf89418a
|
@ -1903,7 +1903,7 @@ impl<'a> CodeGenerator<'a> {
|
|||
argument: left.into(),
|
||||
}
|
||||
.into(),
|
||||
argument: Term::Delay(Term::Constant(UplcConstant::Bool(false)).into())
|
||||
argument: Term::Delay(Term::Constant(UplcConstant::Bool(true)).into())
|
||||
.into(),
|
||||
}
|
||||
.into(),
|
||||
|
|
Loading…
Reference in New Issue