Attribute Macro frame_support::pallet_macros::constant
source · #[constant]
Expand description
The #[pallet::constant]
attribute can be used to add an associated type trait bounded by Get
from pallet::config
into metadata, e.g.:
ⓘ
#[pallet::config]
pub trait Config: frame_system::Config {
#[pallet::constant]
type Foo: Get<u32>;
}