Skip to content

Add pallet name as constant #734

@gregdhill

Description

@gregdhill

For error matching we have to compare strings on the ModuleError (see related issue #313). We do this by printing the debug variant of the generated Error field (see here) but there is also no easy way to extract the pallet name which requires us to hard-code the string (see here). I'm not quite sure what better matching support would look like but a nice in-between step for our usage would be to simply extract the name into a constant.

Metadata

Metadata

Assignees

Labels

ready to implementNo significant design questions remain; this can be implemented now

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions