Trait frame_support::dispatch::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§
Required Methods§
sourcefn is_feeless(&self, origin: &Self::Origin) -> bool
fn is_feeless(&self, origin: &Self::Origin) -> bool
Checks if the dispatchable satisfies the feeless condition as defined by
#[pallet::feeless_if]