mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 16:37:57 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user