-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Introduce storage attr macro #[disable_try_decode_storage] and set it on System::Events and ParachainSystem::HostConfiguration
#3454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7d8d7c3
4a61cf2
cd72af0
f7e6883
4237a40
53e3504
533a665
683ba87
06ff03b
f15f4ce
47a37b3
bc19ee8
fb650db
cc5bcba
61fd3a3
93bc54b
b58a660
19b3735
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -834,7 +834,7 @@ pub fn expand_storages(def: &mut Def) -> proc_macro2::TokenStream { | |
| .storages | ||
| .iter() | ||
| .filter_map(|storage| { | ||
| if storage.cfg_attrs.is_empty() { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kianenigma do you remember why we check
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems it's to avoid this compile error https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5317738 I wonder if there's a better way to handle that.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea we should probably re-expand the attributes here. |
||
| if storage.try_decode { | ||
| let ident = &storage.ident; | ||
| let gen = &def.type_use_generics(storage.attr_span); | ||
| Some(quote::quote_spanned!(storage.attr_span => #ident<#gen> )) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.