referrerpolicy=no-referrer-when-downgrade
frame_support::dispatch

Trait CheckIfFeeless

Source
pub trait CheckIfFeeless {
    type Origin;

    // Required method
    fn is_feeless(&self, origin: &Self::Origin) -> bool;
}
Expand description

Means to checks if the dispatchable is feeless.

This is automatically implemented for all dispatchables during pallet expansion. If a call is marked by #[pallet::feeless_if] attribute, the corresponding closure is checked.

Required Associated Types§

Source

type Origin

The Origin type of the runtime.

Required Methods§

Source

fn is_feeless(&self, origin: &Self::Origin) -> bool

Checks if the dispatchable satisfies the feeless condition as defined by #[pallet::feeless_if]

Implementors§