question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Events decoding returns wrong result at block 2064961

See original GitHub issue

When decoding events at block 2064961,

await api.query.system.events.at("0x4b8928d922b8940fe2f8a80d3491ab5992dd610d498dafe28445fa1ba7405f5b")

returns

[
  {
    "phase": { "Initialization": null },
    "event": {
      "index": "0x080c",
      "data": [
        "0xd39a9ab3692021ef9859a35b49467685334e5ea98ecdc35e1c4b5497bd7675b4",
        "D3dswrhhow77nssxXgxGxYDNso2aVZ44GnHudWpQWCBx5j8",
        168576300000000
      ]
    },
    "topics": []
  },
  {
    "phase": { "Initialization": null },
    "event": { "index": "0x0002", "data": [] },
    "topics": []
  },
  {
    "phase": { "Initialization": null },
    "event": { "index": "0x0807", "data": [48, true] },
    "topics": []
  },
  {
    "phase": { "ApplyExtrinsic": 0 },
    "event": {
      "index": "0x0000",
      "data": [
        { "weight": 1103806605072, "class": "Operational", "paysFee": false }
      ]
    },
    "topics": []
  },
  {
    "phase": { "ApplyExtrinsic": 655360000 }, // outbound extrinsic index
    "event": {
      "index": "0x0000",
      "data": [{ "weight": 8589934848, "class": "Normal", "paysFee": false }]
    },
    "topics": [
      "0x420f000001000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000",
      "0x0000000000000000000000000000000000000000000000000000000000000000"
    ]
  },
  {
    "phase": { "ApplyExtrinsic": 0 },
    "event": { "index": "0x0000", "data": null },
    "topics": []
  }
]

The result seems wrong: an outbound extrinsic index exists. Any ideas?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, May 7, 2020

Ahh, didn’t see it is a current block 😃 For current, will take a look. There was an issue with the types for CompactAssignment, this one is caused by exactly the same issue as the previous one you reported -

https://github.com/polkadot-js/api/issues/2241

For that block it is fixed, but here it would seem like we still have an issue. Will need to pull the data and see. Can confirm it is problematic on this one as well.

0reactions
polkadot-js-botcommented, Jun 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found