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 runtime api impl detection by construct runtime #6665

Merged
merged 8 commits into from
Nov 29, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Nov 26, 2024

Construct runtime uses autoref-based specialization to fetch the metadata about the implemented runtime apis. This is done to not fail to compile when there are no runtime apis implemented. However, there was an issue with detecting runtime apis when they were implemented in a different file. The problem is solved by moving the trait implemented by impl_runtime_apis! to the metadata ir crate.

Closes: #6659

Construct runtime uses autoref-based specialization to fetch the
metadata about the implemented runtime apis. This is done to not fail to
compile when there are no runtime apis implemented. However, there was an issue
with detecting runtime apis when they were implemented in a different file. The problem
is solved by moving the trait implemented by `impl_runtime_apis!` to the metadata ir crate.
@bkchr bkchr added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Nov 26, 2024
@bkchr bkchr requested a review from a team as a code owner November 26, 2024 20:20
@bkchr bkchr requested review from lexnv and a team November 26, 2024 20:20
@bkchr
Copy link
Member Author

bkchr commented Nov 26, 2024

/cmd prdoc --audience runtime_dev --bump patch

@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/12039549220
Failed job name: test-linux-stable

Copy link
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🙏

@bkchr bkchr enabled auto-merge November 28, 2024 21:09
@bkchr bkchr requested review from ggwpez and gui1117 November 29, 2024 11:29
@bkchr bkchr added this pull request to the merge queue Nov 29, 2024
Merged via the queue into master with commit 1e89a31 Nov 29, 2024
198 of 201 checks passed
@bkchr bkchr deleted the bkchr-runtime-api-fix-metadata-detect branch November 29, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RuntimeApis not exposed in the parachain template
5 participants