-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make composite_enum generalized #190
Comments
IMO calling it |
composite_enum without something like explicit pallet_index (i.e. explicit discriminators) seems like a footgun to me. |
Not sure what you are talking about, on the runtime side they reuse the pallet index like all the other things. |
Do you mean the current |
Yes. Yeah, the UI test is fine and a good idea. However, discoverability of this is hard IMO. We also have for all the other things separate macros. |
Followup of paritytech/substrate#13722
Right now it now only accepts FreezeReason, HoldReason, LockId and SlashReason as identifiers for the enum.
Should generalize the implementation to make it possible to extend identifier types.
The text was updated successfully, but these errors were encountered: