Attribute Macro frame_support::pallet_macros::weight

source ·
#[weight]
Expand description

Each dispatchable needs to define a weight with #[pallet::weight($expr)] attribute, the first argument must be origin: OriginFor<T>.