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:
KtorZ
2022-12-13 22:42:37 +01:00
committed by Lucas
parent 431b0cfcf2
commit 18bf89418a

View File

@@ -1903,7 +1903,7 @@ impl<'a> CodeGenerator<'a> {
argument: left.into(), argument: left.into(),
} }
.into(), .into(),
argument: Term::Delay(Term::Constant(UplcConstant::Bool(false)).into()) argument: Term::Delay(Term::Constant(UplcConstant::Bool(true)).into())
.into(), .into(),
} }
.into(), .into(),