Skip to content
Snippets Groups Projects
Commit c8969e17 authored by Joshy Orndorff's avatar Joshy Orndorff Committed by GitHub
Browse files

Add public accessor for tip amount (#9219)


* Add public accessor for tip amount.

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

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

Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
parent 5cd04820
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment