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

Carry over where clauses specified in Config trait to other trait impls #12053

@mustermeiszer

Description

@mustermeiszer

I experience an issue, where I have a complex trait bound on my pallets trait Config. But not all automatical implementations for Pallet<T> do take over those bounds.

Example

trait Config
where
    <Self::GetItem as SomeOtherTraitA>::ItemA: SomeOtherTraitB<ItemB = u32>,
{
   type GetItem: SomeOtherTrait;
}

As far as I could see in the expansion the following impls do not take over the trait bounds

  • frame_support::traits::Hooks
  • frame_support::traits::OnFinalize
  • frame_support::traits::OnIdle
  • frame_support::traits::OnInitialize
  • frame_support::traits::OnRuntimeUpgrade
  • frame_support::traits::OffchainWorker
  • frame_support::traits::IntegrityTest

Metadata

Metadata

Assignees

No one assigned

    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