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

Disputing fails with no info #94

Open
TvrtkoM opened this issue Jun 4, 2021 · 0 comments
Open

Disputing fails with no info #94

TvrtkoM opened this issue Jun 4, 2021 · 0 comments
Labels

Comments

@TvrtkoM
Copy link
Contributor

TvrtkoM commented Jun 4, 2021

Not sure where to put this issue. It's probably related to chain code.

When trying to dispute outcome on web application, extrinsic fails. This is what happens on front-end:

    if (status.isInBlock) {
      events.forEach(async ({ event: { data, method } }) => {
        console.log('data', data.toHuman()[0]);
        console.log('method', method);
        if (method === "ExtrinsicFailed" && failCallback) {
          const { index, error } = data.toHuman()[0].Module;

Logging data.toHuman()[0] gives {Other: null}, there's no Module member and we get Cannot read property 'index' of undefined runtime exception.

@TvrtkoM TvrtkoM added the t:bug label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant