Skip to content

Commit 66db5dc

Browse files
committed
Do not consider type aliases when retrieving ABI type components.
1 parent c66cd2b commit 66db5dc

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

sway-core/src/abi_generation/fuel_abi.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,21 +1208,6 @@ impl TypeId {
12081208
None
12091209
}
12101210
}
1211-
TypeInfo::Alias { .. } => {
1212-
if let TypeInfo::Alias { ty, .. } = &*type_engine.get(resolved_type_id) {
1213-
ty.initial_type_id().get_abi_type_components(
1214-
handler,
1215-
ctx,
1216-
engines,
1217-
metadata_types,
1218-
concrete_types,
1219-
ty.type_id(),
1220-
metadata_types_to_add,
1221-
)?
1222-
} else {
1223-
None
1224-
}
1225-
}
12261211
TypeInfo::UnknownGeneric { .. } => {
12271212
// avoid infinite recursion
12281213
if *self == resolved_type_id {

0 commit comments

Comments
 (0)