Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bddap opened this issue Feb 24, 2021 · 3 comments
Open

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

bddap opened this issue Feb 24, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@bddap
Copy link
Contributor

bddap commented Feb 24, 2021

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"}]
@bddap bddap added the good first issue Good for newcomers label Feb 25, 2021
@herou
Copy link

herou commented Jul 11, 2021

@bddap Can I tackle this one?

@bddap
Copy link
Contributor Author

bddap commented Jul 12, 2021

@lovesh, is code owner here. What do you think @lovesh.

@lovesh
Copy link
Member

lovesh commented Jul 12, 2021

Hi @bddap . Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants