Skip to content
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

Tokens pallet not compiling for v1 release #941

Closed
nakul1010 opened this issue Jul 31, 2023 · 3 comments
Closed

Tokens pallet not compiling for v1 release #941

nakul1010 opened this issue Jul 31, 2023 · 3 comments

Comments

@nakul1010
Copy link

nakul1010 commented Jul 31, 2023

branch polkadot-v1.0.0 / master

command used

cargo build --manifest-path tokens/Cargo.toml

Error

error[E0405]: cannot find trait `GenesisBuild` in this scope
   --> src/lib.rs:433:18
    |
433 |     impl<T: Config> GenesisBuild<T> for GenesisConfig<T> {
    |                     ^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this trait
    |
179 +     use frame_support::traits::GenesisBuild;
    |

error[E0220]: associated type `BlockNumber` not found for `T`
    --> src/lib.rs:1277:19
     |
1277 |     type Moment = T::BlockNumber;
     |                      ^^^^^^^^^^^ there is a similarly named associated type `BlockNumber` in the trait `BlockNumberProvider`

error[E0220]: associated type `BlockNumber` not found for `T`
    --> src/lib.rs:2403:19
     |
2403 |     type Moment = T::BlockNumber;
     |                      ^^^^^^^^^^^ there is a similarly named associated type `BlockNumber` in the trait `BlockNumberProvider`

Some errors have detailed explanations: E0220, E0405.
For more information about an error, try `rustc --explain E0220`.
@nakul1010 nakul1010 changed the title Tokens pallet not compiling v1 release Tokens pallet not compiling for v1 release Jul 31, 2023
@nakul1010
Copy link
Author

toolchain used

[toolchain]
channel = "nightly-2023-04-15"
components = [ "rustfmt", "rls" ]
targets = [ "wasm32-unknown-unknown" ]

@sander2
Copy link
Contributor

sander2 commented Jul 31, 2023

I think it's because parity backported something onto the branch: paritytech/substrate#14594

@xlc
Copy link
Member

xlc commented Jul 31, 2023

duplicated to #940

@xlc xlc closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants