Skip to content

Commit

Permalink
update protobuf message name
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Jul 14, 2024
1 parent a647d03 commit 948a29e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpc/convert_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 948a29e

Please sign in to comment.