Migrate pallet-collective to the new pallet attribute macro#9115
Migrate pallet-collective to the new pallet attribute macro#911541 commits merged intoparitytech:masterfrom koushiro:migrate-pallet-collective
pallet-collective to the new pallet attribute macro#9115Conversation
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
|
@shawntabrizi @thiolliere PTAL |
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 |
…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-collectiveto 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-migrationlabel, which might not be needed depending on the configuration of the pallet.polkadotandkusamauseCouncilandTechnicalCommitteeas pallet name, but the current module prefix isInstance1CollectiveandInstance2Collectiverespectively , thus need to migrate the storages.polkadot companion: paritytech/polkadot#3265