Attribute Macro frame_support_procedural::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>.