normalizeStructTag function
Implementation
String normalizeStructTag(StructTag type) {
final address = type.address;
final module = type.module;
final name = type.name;
final typeParams = type.typeParams;
final formattedTypeParams =
typeParams.isNotEmpty
? "<${typeParams
.map((typeParam) =>
typeParam is String ? typeParam : normalizeStructTag(typeParam),
)
.join(',')}>"
: "";
return "$address::$module::$name$formattedTypeParams";
}