Skip to content

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 a team and lexnv 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
142 checks passed
@bkchr bkchr deleted the bkchr-runtime-api-fix-metadata-detect branch November 29, 2024 14:01
Krayt78 pushed a commit to Krayt78/polkadot-sdk that referenced this pull request Dec 18, 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: paritytech#6659

---------

Co-authored-by: GitHub Action <[email protected]>
dudo50 pushed a commit to paraspell-research/polkadot-sdk that referenced this pull request Jan 4, 2025
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: paritytech#6659

---------

Co-authored-by: GitHub Action <[email protected]>
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

6 participants