sp-api: Set correct where bound in the generated code (#14252)
The where bound for the `create_metadata` function wasn't correct. This pr fixes this by using the where bound declared at the type declaration augmented with the manual where bound.
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/primitives/api/proc-macro/src/runtime_metadata.rs 8 additions, 5 deletionssubstrate/primitives/api/proc-macro/src/runtime_metadata.rs
- substrate/primitives/api/test/Cargo.toml 1 addition, 0 deletionssubstrate/primitives/api/test/Cargo.toml
- substrate/primitives/api/test/tests/ui/positive_cases/custom_where_bound.rs 46 additions, 0 deletions...es/api/test/tests/ui/positive_cases/custom_where_bound.rs
Please register or sign in to comment