pub trait OnChargeCapacityTransaction<T: Config> {
type Balance: Balance;
// Required method
fn withdraw_fee(
key: &T::AccountId,
fee: Self::Balance
) -> Result<Self::Balance, TransactionValidityError>;
}
Expand description
A trait used for the withdrawal of Capacity.
Required Associated Types§
Required Methods§
sourcefn withdraw_fee(
key: &T::AccountId,
fee: Self::Balance
) -> Result<Self::Balance, TransactionValidityError>
fn withdraw_fee( key: &T::AccountId, fee: Self::Balance ) -> Result<Self::Balance, TransactionValidityError>
Handles withdrawal of Capacity from an Account.
Object Safety§
This trait is not object safe.