Skip to content

CallParser assertion failure "missing required event" on Westend Asset Hub runtime westmint@1022000 #440

@claravanstaden

Description

@claravanstaden

Describe the bug
CallParser.next() at parser.ts:319 crashes with AssertionError: missing required event when processing blocks on Westend Asset Hub after runtime upgrade to westmint@1022000. The parser expects a System.ExtrinsicSuccess or System.ExtrinsicFailed event for every extrinsic, but some extrinsics in the new runtime don't have one. This is not limited to a single block — multiple blocks in this runtime are affected.

To Reproduce
Steps to reproduce the behavior:

  1. Create a substrate processor targeting asset-hub-westend with .addEvent() and extrinsic: true
  2. Process blocks from 13636575 onwards
  3. Processor crashes at block 13636580

Expected behavior
The processor should handle extrinsics without System.ExtrinsicSuccess/System.ExtrinsicFailed events gracefully instead of crashing.

Environment:

  • @subsquid/substrate-processor: 8.6.1
  • @subsquid/substrate-data: 4.4.4
  • Node.js: 22
  • OS: Ubuntu (Subsquid Cloud)

Applicable to decoding issues:

  • Chain: asset-hub-westend
  • Spec version: 1022000
  • Block: 13636580
  • Block hash: 0xc1b2a5dc66eca211beedfdc13dec0956065ecdd76c403afdd8e24349cc8f60fe
  • Endpoint: wss://asset-hub-westend-rpc.n.dwellir.com

Additional context
Workaround — patch @subsquid/substrate-data lib/parsing/call/parser.js:

  •        let event = this.next();
    
  •        let event = this.maybeNext();
    
  •        if (!event) continue;
           switch (event.name) {
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions