adjust test and extend for tip

This commit is contained in:
Tadeo hepperle
2023-10-24 10:32:00 +02:00
parent ea59e6c5b5
commit 3dad99711e
2 changed files with 48 additions and 37 deletions
+1 -1
View File
@@ -668,7 +668,7 @@ impl<'a> ExtrinsicSignedExtensions<'a> {
/// The tip of an extrinsic, extracted from the ChargeTransactionPayment signed extension.
pub fn tip(&self) -> Option<u128> {
let tip = self.find("ChargeTransactionPayment")?;
let tip = self.find("ChargeAssetTxPayment")?;
let tip = Compact::<u128>::decode(&mut tip.bytes()).ok()?.0;
Some(tip)
}