-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Migrate pallet-collective
to the new pallet attribute macro
#9115
Conversation
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
@shawntabrizi @thiolliere PTAL |
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.
looks good to me,
I tested the migration with try-runtime on polkadot block 6,163,183
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
EDIT: sorry I talk to fast, it only works for storages. EDIT EDIT: maybe this can be used: https://paritytech.github.io/substrate/frame_support/storage/struct.PrefixIterator.html |
I think the migration should look like this: #9746 |
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.
I think the migration checks are not very accurate, I think it should be improved similarly to this #9746
Once this is done, I'll do the try-runtime on polkadot/kusama and approve
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.
looks good to me
…rate Signed-off-by: koushiro <koushiro.cqx@gmail.com>
the CI has failed due to some flacky test, but AFAIK some fix are ongoing. I tried to test the companion with try-runtime on polkadot and kusama and it was successful. I think we can merge once we solve our CI issue. |
bot merge |
Trying merge. |
Part of #7882
Migrate the
pallet-collective
to the new pallet attribute macrodiff council-before.json council-after.json:
diff technical-committee-before.json technical-committee-after.json:
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
useCouncil
andTechnicalCommittee
as pallet name, but the current module prefix isInstance1Collective
andInstance2Collective
respectively , thus need to migrate the storages.polkadot companion: paritytech/polkadot#3265