Skip to content

Some modules don't expose error definitions to chain metadata #99

Description

@bddap

pub struct Module<T: Trait> for enum Call where origin: T::Origin {
for example needs the line: type Error = Error<T>;

Without these error definitions, extrinsic submission errors are indecipherable by users. Example:

Extrinsic failed submission: [{"Module":{"index":18,"error":1}},{"weight":290004400,"class":"Normal","paysFee":"Yes"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    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