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:
Andrew Jones
2022-02-10 13:10:27 +00:00
committed by GitHub
parent a7c54f7412
commit 4bed7eb716
6 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -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