Skip to content

Commit f43554d

Browse files
committed
Do not consider type aliases when retrieving ABI type components.
1 parent 8265985 commit f43554d

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
@@ -1170,21 +1170,6 @@ impl TypeId {
11701170
None
11711171
}
11721172
}
1173-
TypeInfo::Alias { .. } => {
1174-
if let TypeInfo::Alias { ty, .. } = &*type_engine.get(resolved_type_id) {
1175-
ty.initial_type_id().get_abi_type_components(
1176-
handler,
1177-
ctx,
1178-
engines,
1179-
metadata_types,
1180-
concrete_types,
1181-
ty.type_id(),
1182-
metadata_types_to_add,
1183-
)?
1184-
} else {
1185-
None
1186-
}
1187-
}
11881173
TypeInfo::UnknownGeneric { .. } => {
11891174
// avoid infinite recursion
11901175
if *self == resolved_type_id {

0 commit comments

Comments
 (0)