Remove MakePayment and introduce SignedExtension docs/examples (#3464)

* New doc for signed extensions.

* Cleanup.

* review nits.
This commit is contained in:
Kian Paimani
2019-08-23 14:12:39 +02:00
committed by GitHub
parent 9c4843315c
commit 94243e66b3
7 changed files with 144 additions and 9 deletions
+2 -1
View File
@@ -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> {