Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Issue compiler error when construct_runtime attempts to import a non-existing pallet part #8945

@KiChjang

Description

@KiChjang

When I have the following pallet defined:

#[frame_support::pallet]
pub mod pallet {
    #[pallet::pallet]
    pub struct Pallet<T>(_);

    #[pallet::config]
    pub trait Config: frame_system::Config {}
}

and have this corresponding runtime:

construct_runtime!(
    //...
    Pallet: pallet::{Pallet, Call},
)

Compilation should fail, since pallet does not contain a #[pallet::call] defining the calls for the pallet.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions