Skip to content

Better error reporting for issues specific to the tool #9

Description

@shannonwells

When a transaction is submitted, just the transaction data is displayed, and if it fails, just the enum values are displayed, one for the pallet index in our runtime, and one for the Error enum in the actual pallet. There are some common failures that could be converted to human-readable meanings, rather than having to literally poke through polkadot-sdk code to figure out which pallet and which Error enum emitted the error. Examples:

There are probably others, but these 3 are good for now.

To get the index of a pallet in our runtime, see construct_runtime!(...) in runtime/frequency/src/lib.rs

For convenience, the substrate frame pallet code lives here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions