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 Orndorff
2021-06-28 16:13:19 -04:00
committed by GitHub
parent 5cd04820dc
commit c8969e1762
@@ -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,