mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-11 21:27:06 +00:00
Remove MakePayment and introduce SignedExtension docs/examples (#3464)
* New doc for signed extensions. * Cleanup. * review nits.
This commit is contained in:
1 parent
9c4843315c
commit
94243e66b3
7 files changed
+144
-9
No files matched your search
@@ -425,7 +425,8 @@ where
|
||||
}
|
||||
|
||||
/// The default dispatch fee computor computes the fee in the same way that
|
||||
/// the implementation of `MakePayment` for the Balances module does.
|
||||
/// the implementation of `TakeFees` for the Balances module does. Note that this only takes a fixed
|
||||
/// fee based on size. Unlike the balances module, weight-fee is applied.
|
||||
pub struct DefaultDispatchFeeComputor<T: Trait>(PhantomData<T>);
|
||||
impl<T: Trait> ComputeDispatchFee<<T as Trait>::Call, BalanceOf<T>> for DefaultDispatchFeeComputor<T> {
|
||||
fn compute_dispatch_fee(call: &<T as Trait>::Call) -> BalanceOf<T> {
|
||||
|
||||
Reference in new issue
Block a user