Skip to content

Commit 1a6a2fb

Browse files
committed
Do not consider type aliases when retrieving ABI type components.
1 parent 06c3560 commit 1a6a2fb

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
@@ -939,21 +939,6 @@ impl TypeId {
939939
None
940940
}
941941
}
942-
TypeInfo::Alias { .. } => {
943-
if let TypeInfo::Alias { ty, .. } = &*type_engine.get(resolved_type_id) {
944-
ty.initial_type_id().get_abi_type_components(
945-
handler,
946-
ctx,
947-
engines,
948-
metadata_types,
949-
concrete_types,
950-
ty.type_id(),
951-
metadata_types_to_add,
952-
)?
953-
} else {
954-
None
955-
}
956-
}
957942
TypeInfo::UnknownGeneric { .. } => {
958943
// avoid infinite recursion
959944
if *self == resolved_type_id {

0 commit comments

Comments
 (0)