Attribute Macro frame_support::pallet_macros::disable_frame_system_supertrait_check

source ยท
#[disable_frame_system_supertrait_check]
Expand description

Allows bypassing the frame_system::Config supertrait check.

To bypass the syntactic frame_system::Config supertrait check, use the attribute pallet::disable_frame_system_supertrait_check.

Note this bypass is purely syntactic, and does not actually remove the requirement that your pallet implements frame_system::Config. When using this check, your config is still required to implement frame_system::Config either via

  • Implementing a trait that itself implements frame_system::Config
  • Tightly coupling it with another pallet which itself implements frame_system::Config

e.g.

#[frame_support::pallet]
mod pallet {
	trait OtherTrait: frame_system::Config {}

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

	#[pallet::config]
	#[pallet::disable_frame_system_supertrait_check]
	pub trait Config: OtherTrait {}
}

To learn more about supertraits, see the trait_based_programming reference doc.


Documentation for this macro can be found at frame_support::pallet_macros::disable_frame_system_supertrait_check.