referrerpolicy=no-referrer-when-downgrade
frame_support_procedural

Attribute Macro weight_of_authorize

Source
#[weight_of_authorize]
Expand description

Allows to define the weight of the authorize function.

See authorize for more information on how authorization works.

Defines the value of the weight of the authorize function. This attribute is similar to #[pallet::weight]:

  • it can be ignore in dev_mode
  • it can be automatically infered from weight info. For the call foo the function authorize_foo in the weight info will be used.
  • it can be a fixed value like Weight::from_all(0) (not recommended in production).