From 948a29eaf0df676317cffaba9d2d1e0cdfba7872 Mon Sep 17 00:00:00 2001 From: Eduard Voiculescu Date: Sat, 13 Jul 2024 22:34:20 -0400 Subject: [PATCH] update protobuf message name --- rpc/convert_metadata.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpc/convert_metadata.go b/rpc/convert_metadata.go index 4c621fe..d5cd85c 100644 --- a/rpc/convert_metadata.go +++ b/rpc/convert_metadata.go @@ -84,8 +84,9 @@ func convertTypesFromv14(metadata substrateTypes.MetadataV14) (*types.Types, err ttype := convertType.convertPortableTypeV14(portableType, allMetadataTypes) variants := ttype.(*types.Variants) callFunctions := variants.ToCallFunctions() + str := stringy.New(string(pallet.Name)) protobufMessage := &types.ProtobufMessage{ - Name: string(pallet.Name), + Name: str.PascalCase().Get(), Messages: variants.ToProtobufMessages(), CallFunctions: callFunctions, }