fix: Using the wrong match string for discards in FieldsExpose

Also need to return a lambda wrapped term from list_access_to_uplc under all conditions
This commit is contained in:
microproofs
2024-01-25 14:18:36 -05:00
parent 09ca2b4955
commit 78d2049d7b
4 changed files with 118 additions and 31 deletions

View File

@@ -4985,7 +4985,7 @@ impl<'a> CodeGenerator<'a> {
let named_indices = names_types
.iter()
.skip_while(|(name, _, _)| name.is_empty())
.skip_while(|(name, _, _)| name == "_")
.collect_vec();
if !named_indices.is_empty() || is_expect {