feat: Add nil support for test 19

This commit is contained in:
Kasey White
2022-12-17 06:16:10 -05:00
committed by Lucas
parent 5b908aaeb7
commit eb386f4606

View File

@@ -2000,6 +2000,8 @@ impl<'a> CodeGenerator<'a> {
if constructor.tipo.is_bool() {
arg_stack
.push(Term::Constant(UplcConstant::Bool(constr_name == "True")));
} else if constructor.tipo.is_nil() {
arg_stack.push(Term::Constant(UplcConstant::Unit));
} else {
let data_type = self.data_types.get(&data_type_key).unwrap();