mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Fix for 'note_applied_extrinsic' - consider also 'extract_actual_pays_fee' (#11849)
This commit is contained in:
@@ -91,8 +91,8 @@ use frame_support::{
|
||||
OriginTrait, PalletInfo, SortedMembers, StoredMap, TypedGet,
|
||||
},
|
||||
weights::{
|
||||
extract_actual_weight, DispatchClass, DispatchInfo, PerDispatchClass, RuntimeDbWeight,
|
||||
Weight,
|
||||
extract_actual_pays_fee, extract_actual_weight, DispatchClass, DispatchInfo,
|
||||
PerDispatchClass, RuntimeDbWeight, Weight,
|
||||
},
|
||||
Parameter,
|
||||
};
|
||||
@@ -1500,6 +1500,7 @@ impl<T: Config> Pallet<T> {
|
||||
/// To be called immediately after an extrinsic has been applied.
|
||||
pub fn note_applied_extrinsic(r: &DispatchResultWithPostInfo, mut info: DispatchInfo) {
|
||||
info.weight = extract_actual_weight(r, &info);
|
||||
info.pays_fee = extract_actual_pays_fee(r, &info);
|
||||
Self::deposit_event(match r {
|
||||
Ok(_) => Event::ExtrinsicSuccess { dispatch_info: info },
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user