small simplification

This commit is contained in:
microproofs 2024-03-30 13:38:07 -04:00 committed by Kasey
parent 75b076552c
commit 30dd1f60e7
1 changed files with 1 additions and 7 deletions

View File

@ -497,14 +497,8 @@ impl Type {
UplcType::Unit UplcType::Unit
} else if self.is_map() { } else if self.is_map() {
UplcType::List(UplcType::Pair(UplcType::Data.into(), UplcType::Data.into()).into()) UplcType::List(UplcType::Pair(UplcType::Data.into(), UplcType::Data.into()).into())
} else if self.is_list() { } else if self.is_list() || self.is_tuple() {
UplcType::List(UplcType::Data.into()) UplcType::List(UplcType::Data.into())
} else if self.is_tuple() {
match self {
Self::Tuple { .. } => UplcType::List(UplcType::Data.into()),
Self::Var { tipo, .. } => tipo.borrow().get_uplc_type().unwrap(),
_ => unreachable!(),
}
} else if self.is_pair() { } else if self.is_pair() {
UplcType::Pair(UplcType::Data.into(), UplcType::Data.into()) UplcType::Pair(UplcType::Data.into(), UplcType::Data.into())
} else if self.is_bls381_12_g1() { } else if self.is_bls381_12_g1() {