Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jul 22, 2024
1 parent 7812276 commit f420580
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rpc/convert_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,12 @@ func (c *TypeConverter) FieldFor65(ttype substrateTypes.PortableTypeV14, _ strin
palletCallNames := palletCalls.Type.Def.Variant.Variants

for _, palletCallName := range palletCallNames { // remark
n := string(palletName) + "_"
n += stringy.New(string(palletCallName.Name)).PascalCase().Get()
n += "_Call"
of.Types = append(of.Types, &protobuf.BasicField{
Name: fmt.Sprintf("%s_%s", palletName, string(palletCallName.Name)),
Type: fmt.Sprintf("%s_%s_Call", palletName, string(palletCallName.Name)),
Type: n,
})
}
}
Expand Down

0 comments on commit f420580

Please sign in to comment.