-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Migrate pallet-session
to the new pallet macro
#9796
Conversation
Signed-off-by: koushiro <[email protected]>
Signed-off-by: koushiro <[email protected]>
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.
lgtm
use sp_std::prelude::*; | ||
|
||
use super::{shared, Config, IdentificationTuple, ProvingTrie}; | ||
use crate::{Pallet as SessionModule, SessionIndex}; |
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.
thanks for clearing these up, super::super
is super confusing (pun intended).
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.
LGTM
/cc @thiolliere @shawntabrizi |
I wonder if it's okay to just leave |
why use declarative macro?I will do it in another PR |
I meant whether it's okay to not change it in this PR and wait for the next one. But I suppose there isn't any harm in merging this as-is... |
bot merge |
Trying merge. |
Part of #7882
Migrate
pallet-session
(excluding historical) to the new pallet attribute macro.From https://crates.parity.io/frame_support/attr.pallet.html#checking-upgrade-guidelines
So users of the pallet must be careful about the name they used in
construct_runtime!
. Hence theruntime-migration
label, which might not be needed depending on the configuration of the pallet.polkadot
andkusama
useSession
as pallet name, thus no need for migration