You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Experiencing problems? Have you tried our Stack Exchange first?
This is not a support question.
Description of bug
When I upgrade substrate version of my project ( polkadot-v0.9.39 ==> polkadot-v0.9.42 ), the runtime API I originally defined will compile with an error:
➜ api-demo git:(master) cargo build --release
Updating git repository `https://github.com/paritytech/substrate`
Updating crates.io index
Compiling api-demo v0.1.0 (/Users/koushiro/api-demo)
error[E0277]: the trait bound `C: ProposalConfig` is not satisfied
--> src/lib.rs:22:1
|
22 | / sp_api::decl_runtime_apis! {
23 | | pub trait DemoApi<C>
24 | | where
25 | | C: ProposalConfig,
... |
28 | | }
29 | | }
| |_^ the trait `ProposalConfig` is not implemented for `C`
|
= note: this error originates in the macro `sp_api::decl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider further restricting type parameter `C`
|
29 | }, C: ProposalConfig
| +++++++++++++++++++
For more information about this error, try `rustc --explain E0277`.
error: could not compile `api-demo` due to previous error
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
When I upgrade substrate version of my project (
polkadot-v0.9.39
==>polkadot-v0.9.42
), the runtime API I originally defined will compile with an error:I think it should be caused by #13302 .
Steps to reproduce
The simple repo to reproduce the issue.
The text was updated successfully, but these errors were encountered: