mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 12:37:59 +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:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user