[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:
parent
c0fd8326f0
commit
b08c1e29b8
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue