Skip to content

Extend GetCallMetadata with indices #208

Open
@ggwpez

Description

@ggwpez

GetCallMetadata can currently be used to get the call- and module-name of a RuntimeCall.
In cases where we want to select specific calls/modules, it is better to use their index than strings.

GetCallMetadata could therefore be extended to also return these indices. Looking internally, we use a GetCallName trait which is re-used in the GetCallMetadata trait. So probably analogous to that add a GetCallIndex and then re-use that as well.

Metadata

Metadata

Assignees

Labels

C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.D1-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.I5-enhancementAn additional feature request.T1-FRAMEThis PR/Issue is related to core FRAME, the framework.

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions