Conversation
| ParasInherent: parachains_paras_inherent::{Pallet, Call, Storage, Inherent}, | ||
| Initializer: parachains_initializer::{Pallet, Call, Storage}, | ||
| Paras: parachains_paras::{Pallet, Call, Storage, Origin, Event}, | ||
| ParasShared: parachains_shared::{Pallet, Call, Storage}, | ||
| Scheduler: parachains_scheduler::{Pallet, Call, Storage}, | ||
| ParasSudoWrapper: paras_sudo_wrapper::{Pallet, Call}, | ||
| SessionInfo: parachains_session_info::{Pallet, Call, Storage}, |
There was a problem hiding this comment.
pallet must be put in construct_runtime for tests... if you make a call into ParasShared storage without doing so frame_support will panic as it needs a pallet name (the one that was previously declared in decl_storage!).
I probably should check if any of cumulus tests do this (don't think CI checks)
Edit: I believe it is all good, but if any tests randomly start to panic that's why
|
looking at the number of line removed, I guess some master merge got wrong, isn't it ? @ferrell-code |
8ce23f1 to
2a9840d
Compare
|
Tabrizi swooping in with that 5 am merge lol, I force pushed back to the original point, re-merged and resolved conflicts (I know you guys don't like force pushes but I think reverting a merge to re-merge is reasonable) |
|
bot merge |
|
Waiting for commit status. |
|
@ferrell-code yeah sorry about that. Was gonna fix it for you, but then got too tired, and gave up lol |
|
I got a kick out of it, always appreciate your help 🐪 |
* master: Reduce staking miner reward (companion `substrate/pull/9395`) (#3465) Parachains shared.rs to Frame V2 (#3425) Parachains hrmp.rs to Frame V2 (#3475) Migrate slots pallet to pallet attribute macro. (#3218) Improve test in bridge (#3507) parachain dmp.rs to Frame V2 (#3426) Parachains inclusion.rs to Frame V2 (#3440) Dispute coordinator - Recover disputes on startup (#3481) Use correct syntax for owning all files in a folder (#3510) Add wococo-local chain spec (#3509) Dispute vote filtering for block authors (#3498) Bump indexmap from 1.6.1 to 1.7.0 (#3497) Companion for substrate #9315 (#3477)
relates: #2882
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
ParasSharedpallet must be careful about the name they used inconstruct_runtime!.Hence the runtime-migration label, which might not be needed depending on the configuration of theParasSharedpallet.Kusama and westend both already use
ParasSharedinconstruct_runtime!no migration needed. Polkadot does not use theParasSharedpallet.Rococo uses
Sharedinconstruct_runtime!, therefore I altered it toParasSharedto keep the pallet name the same as seen indecl_storage!ofParasShared