Fix: additional tipo case when using Pairs type inside of a redeemer or datum type

This commit is contained in:
microproofs
2025-01-30 18:54:14 +07:00
parent cb69325af5
commit 7d6925545c
3 changed files with 39 additions and 1 deletions

View File

@@ -719,7 +719,14 @@ pub fn get_arg_type_name(tipo: &Type) -> String {
let inner_args = elems.iter().map(|arg| get_arg_type_name(arg)).collect_vec();
inner_args.join("_")
}
_ => unreachable!(),
Type::Pair { fst, snd, .. } => {
let inner_args = [fst, snd]
.iter()
.map(|arg| get_arg_type_name(arg))
.collect_vec();
inner_args.join("_")
}
_ => unreachable!("WTF {:#?}", tipo),
}
}