-
Notifications
You must be signed in to change notification settings - Fork 525
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
subsmt_milestone_1 #1228
base: master
Are you sure you want to change the base?
subsmt_milestone_1 #1228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @YanOctavian. Thanks for the delivery, but the PR is currently editing our application template as well; could you undo those changes?
@semuelle Thank you for your reminder. I will update it as soon as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to compile the project locally, but I run into issues. First, cargo build
failed because the members
folders are case sensitive (SMT
, not smt
). Then, it fails with the following error message. This also happens using docker build
(docker compose
works, though). Could you check?
Compiling sp-runtime v31.0.1 (https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.14.0#778e9d15)
Compiling alloc-stdlib v0.2.2
Compiling num-bigint v0.4.6
Compiling const-random v0.1.18
Compiling scale-decode v0.11.1
error[E0277]: the trait bound `generic::header::Header<Number, Hash>: Encode` is not satisfied
--> /home/x/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/778e9d1/substrate/primitives/runtime/src/generic/header.rs:75:39
|
75 | impl<Number, Hash> traits::Header for Header<Number, Hash>
| ^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `generic::header::Header<Number, Hash>`, which is required by `generic::header::Header<Number, Hash>: Codec`
|
= note: required for `generic::header::Header<Number, Hash>` to implement `Codec`
note: required by a bound in `traits::Header`
--> /home/x/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/778e9d1/substrate/primitives/runtime/src/traits.rs:1199:24
|
1198 | pub trait Header:
| ------ required by a bound in this trait
1199 | Clone + Send + Sync + Codec + Eq + MaybeSerialize + Debug + TypeInfo + 'static
| ^^^^^ required by this bound in `Header`
help: consider extending the `where` clause, but there might be an alternative better way to express this requirement
|
78 | Hash: HashT, generic::header::Header<Number, Hash>: Encode
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error[E0277]: the trait bound `generic::header::Header<Number, Hash>: Encode` is not satisfied
--> /home/x/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/778e9d1/substrate/primitives/runtime/src/generic/header.rs:148:17
|
148 | Hash::hash_of(self)
| ------------- ^^^^ the trait `Encode` is not implemented for `generic::header::Header<Number, Hash>`
| |
| required by a bound introduced by this call
|
note: required by a bound in `traits::Hash::hash_of`
--> /home/x/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/778e9d1/substrate/primitives/runtime/src/traits.rs:973:16
|
973 | fn hash_of<S: Encode>(s: &S) -> Self::Output {
| ^^^^^^ required by this bound in `Hash::hash_of`
help: consider extending the `where` clause, but there might be an alternative better way to express this requirement
|
143 | Hash: HashT, generic::header::Header<Number, Hash>: Encode
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling js-sys v0.3.74
Compiling darling v0.20.10
For more information about this error, try `rustc --explain E0277`.
error: could not compile `sp-runtime` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Same issue for me. |
It seems that this issue was caused by some dependencies being updated, as I haven't encountered this problem locally. |
Exactly, it was after I |
@kevin-valerio @semuelle Thank you very much for your feedback. After running |
It seems that there have been some major upgrades and updates to the Polkadot SDK recently. |
@kevin-valerio @semuelle I switched the polkadot-sdk branch to |
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#2335