[fix]: Use pascal casing for type names in structs generated by abigen (#2130)

* [fix]: Use pascal casing for type names in structs generated by abigen

* [fix]: Revert the downversioning changes
This commit is contained in:
Jacob Turner 2023-02-10 20:50:09 +01:00 committed by GitHub
parent c0fd8326f0
commit b08c1e29b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ fn struct_type_projections(name: &str) -> Vec<String> {
fn expand_struct_type(struct_ty: &StructFieldType) -> TokenStream { fn expand_struct_type(struct_ty: &StructFieldType) -> TokenStream {
match struct_ty { match struct_ty {
StructFieldType::Type(ty) => { StructFieldType::Type(ty) => {
let ty = util::ident(ty.name()); let ty = util::ident(&ty.name().to_pascal_case());
quote! {#ty} quote! {#ty}
} }
StructFieldType::Array(ty) => { StructFieldType::Array(ty) => {