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

Fix missing runtime apis metadata #820

Closed
wants to merge 2 commits into from

Conversation

magecnion
Copy link
Contributor

@magecnion magecnion commented Oct 15, 2024

Move impl_runtime_apis! macro to same file as construct_runtime!, then all the apis implemented are included in the metadata generated. You can check by running:

subxt metadata --version 15 -f json > local_metadata15 --url http://127.0.0.1:9999

@magecnion magecnion changed the title Move impl_runtime_apis! macro to same file as construct_runtime! Fix missing runtime apis metadata Oct 16, 2024
@ozgunozerk
Copy link

curious, how did you discover this fix? seems quite unintuitive

We had the same problem and seems like we made progress, so thanks a lot!

@magecnion
Copy link
Contributor Author

Reading around and looking at other runtimes I realized that the rest of the parachains have both macros (impl_runtime_apis! and construct_runtime!) in the same file. These comments also helped me have a lightbulb moment. Glad that it helped.

@ozgunozerk you can track the issue here #821, as this will be disregarded.

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.

2 participants