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
+2 -2
View File
@@ -54,7 +54,7 @@ use frame_metadata::{
RuntimeMetadataPrefixed,
StorageEntryType,
};
use heck::SnakeCase as _;
use heck::ToSnakeCase as _;
use proc_macro2::TokenStream as TokenStream2;
use proc_macro_error::abort_call_site;
use quote::{
@@ -462,7 +462,7 @@ where
type_gen,
);
CompositeDef::struct_def(
var.name(),
struct_name.as_ref(),
Default::default(),
fields,
Some(parse_quote!(pub)),