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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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
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
4 participants