mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 18:28:01 +00:00
Fix conversion of Call struct names to UpperCamelCase (#441)
* Fix conversion of `Call` struct names to UpperCamelCase * Update to latest heck and use ToUpperCamelCase
This commit is contained in:
@@ -23,8 +23,8 @@ use frame_metadata::{
|
||||
PalletMetadata,
|
||||
};
|
||||
use heck::{
|
||||
CamelCase as _,
|
||||
SnakeCase as _,
|
||||
ToSnakeCase as _,
|
||||
ToUpperCamelCase as _,
|
||||
};
|
||||
use proc_macro2::TokenStream as TokenStream2;
|
||||
use proc_macro_error::abort_call_site;
|
||||
@@ -43,7 +43,7 @@ pub fn generate_calls(
|
||||
let struct_defs = super::generate_structs_from_variants(
|
||||
type_gen,
|
||||
call.ty.id(),
|
||||
|name| name.to_camel_case().into(),
|
||||
|name| name.to_upper_camel_case().into(),
|
||||
"Call",
|
||||
);
|
||||
let (call_structs, call_fns): (Vec<_>, Vec<_>) = struct_defs
|
||||
|
||||
Reference in New Issue
Block a user