This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
impl_runtime_apis
does not work if sp-api
is not in scope
#14145
Labels
I3-bug
The node fails to follow expected behavior.
Comments
It should for sure not panic, but otherwise it uses the same logic as in FRAME. |
Moreover, if
we get the following error:
|
Can this be fixed in a timely fashion? if we can fix it sooner, I won't need to go and refactor infinite number of branches in the tutorial late 🙈 |
Did you read what I have written in element? The same applies for all FRAME macros as well... |
Saw your comment here #14267 (comment). |
closed in 7d912d0 |
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Somewhat similar to paritytech/polkadot-sdk#173, it seems like this macro also does not work if
sp-api
is not directly in scope as a dependency. The error message is very cryptic:This prevents eg. #14137 to re-export
sp_api::Core
andimpl_runtime_apis
in a way that is meaningfully usable.Note that for rest of the APIs, like
sp_block_builder
you can import it from a 3rd party re-export them from somewhere else and it works. Although, you need make sure to re-export them likepub use sp_block_builder::*
to re-export some magic generated bydecl_runtime_apis!
as well.The text was updated successfully, but these errors were encountered: