-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polkadot doesn't needs migration as not used in polkadot/kusama and westend has unchanged pallet prefix.
Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Guillaume Thiolliere <[email protected]>
CI is failing with this warning as error https://gitlab.parity.io/parity/substrate/-/jobs/867537#L473:
I don't get it because it is clearly used by the |
yes but the metadata function (which uses call_functions) generated by construct_runtime is unused I guess, thus it complains about unused items. |
Ah yeah, I wonder how that worked with the legacy |
maybe rustc is not doing the same checks for both macros kind. #[test]
fn dummy_use() {
Test::metadata();
} Or actually we can add in construct_runtime |
The original macro already annotated the generated fn with |
* WIP convert sudo pallet to attribute macros * Fix up tests and migrate mock * Fix up genesis build * Migrate doc comment example * Update frame/sudo/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Update frame/sudo/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Update frame/sudo/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Update frame/sudo/src/lib.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Allow unused metadata call_functions Co-authored-by: Guillaume Thiolliere <[email protected]>
Part of #7882.
Converts the
Sudo
pallet to the new pallet attribute macro introduced in #6877.Following the upgrade guidelines here: https://crates.parity.io/frame_support/attr.pallet.html#upgrade-guidelines.
From https://crates.parity.io/frame_support/attr.pallet.html#checking-upgrade-guidelines
So users of the
Sudo
pallet must be careful about the name they used inconstruct_runtime!
. Hence theruntime-migration
label, which might not be needed depending on the configuration of theSudo
pallet.