Skip to content
This repository was archived by the owner on Feb 28, 2021. It is now read-only.
This repository was archived by the owner on Feb 28, 2021. It is now read-only.

Provide error variants for transaction failures #568

@geigerzaehler

Description

@geigerzaehler

Submitting a transaction to a node for inclusion in block can fail for a multitude of reasons. These reasons should be exposed in the client Error enum.

Sources of transaction errors is the TransactionStatus stream and the response from rpc.watch_extrinsic. We should handle all TransactionStatuss apropriately instead of returning InvalidTransactionStatus.

We should at least provide tests for the invalid transaction case. If possible we should also test more transaction errors. The end-to-end tests already include some tests for transaction errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    project-healthRefactoring, clean up or quality of life

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions