-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Migrate pallet-collective to the new pallet attribute macro
#9115
Conversation
Signed-off-by: koushiro <[email protected]>
Signed-off-by: koushiro <[email protected]>
|
@shawntabrizi @thiolliere PTAL |
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.
looks good to me,
I tested the migration with try-runtime on polkadot block 6,163,183
Signed-off-by: koushiro <[email protected]>
Signed-off-by: koushiro <[email protected]>
Signed-off-by: koushiro <[email protected]>
Signed-off-by: koushiro <[email protected]>
|
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 |
Signed-off-by: koushiro <[email protected]>
|
I think the migration should look like this: #9746 |
gui1117
left a comment
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
Signed-off-by: koushiro <[email protected]>
Signed-off-by: koushiro <[email protected]>
gui1117
left a comment
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
Signed-off-by: koushiro <[email protected]>
…rate Signed-off-by: koushiro <[email protected]>
|
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