mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Deploy pallet-parameters to rococo and fix dynamic_params name expand (#4006)
Changes: - Add pallet-parameters to Rococo to configure the NIS and preimage pallet. - Fix names of expanded dynamic params. Apparently, `to_class_case` removes suffix `s`, and `Nis` becomes `Ni` 😑. Now using `to_pascal_case`. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Alessandro Siniscalchi <asiniscalchi@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
1bca825cc2
commit
30c58fa22a
@@ -91,7 +91,7 @@ impl ToTokens for DynamicParamModAttr {
|
||||
let mut quoted_enum = quote! {};
|
||||
for m in self.inner_mods() {
|
||||
let aggregate_name =
|
||||
syn::Ident::new(&m.ident.to_string().to_class_case(), m.ident.span());
|
||||
syn::Ident::new(&m.ident.to_string().to_pascal_case(), m.ident.span());
|
||||
let mod_name = &m.ident;
|
||||
|
||||
let mut attrs = m.attrs.clone();
|
||||
@@ -222,8 +222,10 @@ impl ToTokens for DynamicPalletParamAttr {
|
||||
let (params_mod, parameter_pallet, runtime_params) =
|
||||
(&self.inner_mod, &self.meta.parameter_pallet, &self.meta.runtime_params);
|
||||
|
||||
let aggregate_name =
|
||||
syn::Ident::new(¶ms_mod.ident.to_string().to_class_case(), params_mod.ident.span());
|
||||
let aggregate_name = syn::Ident::new(
|
||||
¶ms_mod.ident.to_string().to_pascal_case(),
|
||||
params_mod.ident.span(),
|
||||
);
|
||||
let (mod_name, vis) = (¶ms_mod.ident, ¶ms_mod.vis);
|
||||
let statics = self.statics();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user