Skip to content

Conversation

@TarikGul
Copy link
Member

Summary

Adds fallback lookup for legacy outer enum naming in V14 metadata conversion.

Older Substrate runtimes used polkadot_runtime::Call and polkadot_runtime::Event
instead of the modern RuntimeCall and RuntimeEvent names. This caused
TypeNameNotFound("RuntimeCall") errors when working with historical blocks.

The fix tries modern names first, then falls back to legacy *_runtime::Call/Event patterns.

I found this issue when integrating v0.50 into polkadot-rest-api. This fixed our issue.

@TarikGul TarikGul requested a review from a team as a code owner January 12, 2026 20:44
@jsdw
Copy link
Collaborator

jsdw commented Jan 12, 2026

Thank you! Will look more closely tomorrow morning!

@jsdw
Copy link
Collaborator

jsdw commented Jan 13, 2026

This is great; just added a test (and tweaked decoding to help the test) and all looks good!

@jsdw jsdw merged commit bdc9a9f into jsdw-subxt-new Jan 13, 2026
1 check passed
@jsdw jsdw deleted the tg-fix-call branch January 13, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants