Skip to content

Commit 5989ba2

Browse files
committed
Do not consider type aliases when retrieving ABI type components.
1 parent 8c0e866 commit 5989ba2

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
@@ -943,21 +943,6 @@ impl TypeId {
943943
None
944944
}
945945
}
946-
TypeInfo::Alias { .. } => {
947-
if let TypeInfo::Alias { ty, .. } = &*type_engine.get(resolved_type_id) {
948-
ty.initial_type_id().get_abi_type_components(
949-
handler,
950-
ctx,
951-
engines,
952-
metadata_types,
953-
concrete_types,
954-
ty.type_id(),
955-
metadata_types_to_add,
956-
)?
957-
} else {
958-
None
959-
}
960-
}
961946
TypeInfo::UnknownGeneric { .. } => {
962947
// avoid infinite recursion
963948
if *self == resolved_type_id {

0 commit comments

Comments
 (0)