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:
- Create a substrate processor targeting asset-hub-westend with .addEvent() and extrinsic: true
- Process blocks from 13636575 onwards
- 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.maybeNext();
-
if (!event) continue;
switch (event.name) {
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:
Expected behavior
The processor should handle extrinsics without System.ExtrinsicSuccess/System.ExtrinsicFailed events gracefully instead of crashing.
Environment:
Applicable to decoding issues:
Additional context
Workaround — patch @subsquid/substrate-data lib/parsing/call/parser.js: