Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Make modules macros more general over type parameters #693

@gavofyork

Description

@gavofyork

Related: #669

Currently impl_outer_origin requires the module's Origin types not to take a generic parameter of the configuration trait (notably unlike system::Origin<T: system::Trait>). impl_outer_origin and impl_outer_event macros, when listing their modules, should be able to optionally provide the <T: Trait> suffix to denote that the Origin/Event struct in their module requires the configuration trait as a generic param.

  • Specify if generic in impl_outer_event also impl_outer_origin
  • Allow for non-parameterised enum items

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions