Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add public accessor for tip amount #9219

Merged
merged 2 commits into from
Jun 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frame/transaction-payment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down