Skip to content

Tokens pallet not compiling for v1 release #941

@nakul1010

Description

@nakul1010

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`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions