Skip to content

Feature request: better error matching support #313

@sander2

Description

@sander2

It would be really nice if we could pattern match on returned dispatch errors. E.g. something like

match error {
    SubxtRuntimeError::Module(MyModule::MyError) => {...}
    _ => ...,
}

Currently we have to manually check the PalletError.pallet and PalletError.error strings, and these string constants are not exposed in the generated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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