You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
currently when one pallet removes it calls or its origin, or if a runtime removes a pallet, then all indices are changed.
This is annoying because calls are usually expected not to change and same for origin (which is stored on chain by scheduler).
(also maybe event should benefit from it as well.)
Instead in the codec implementation of event/calls/origin we should use (when decoding the variant index) a fixed index given to construct_runtime.
Ideally I was thinking first using ModuleToIndex and allow user to set the index of a module. But this is not perfect because currently some pallet have their call at index n and their origin at index p. Thus in order not to break those types anymore, construct_runtime should allow to configure them independently.