Add public accessor for tip amount (#9219)

* Add public accessor for tip amount.

* Update frame/transaction-payment/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Joshy OrndorffandBastian Köcher authored and GitHub committed 2021-06-28 22:13:19 +02:00
1 parent 5cd04820dc
commit c8969e1762
1 file changed
+5
@@ -525,6 +525,11 @@ impl<T: Config> ChargeTransactionPayment<T> where
Self(fee)
}
/// Returns the tip as being choosen by the transaction sender.
pub fn tip(&self) -> BalanceOf<T> {
self.0
}
fn withdraw_fee(
&self,
who: &T::AccountId,