Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gui1117 committed Oct 24, 2024
1 parent 643cfda commit 52cc2aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,8 @@ impl EthExtra for EthExtraImpl {
frame_system::CheckWeight::<Runtime>::new(),
pallet_asset_conversion_tx_payment::ChargeAssetTxPayment::<Runtime>::from(tip, None),
frame_metadata_hash_extension::CheckMetadataHash::<Runtime>::new(false),
).into()
)
.into()
}
}

Expand Down
5 changes: 4 additions & 1 deletion substrate/frame/system/src/extensions/check_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,10 @@ mod tests {
));

// Ensure the accurate refund from benchmark is used
assert_eq!(crate::ExtrinsicWeightRefunded::<Test>::get(), post_info.calc_unspent(&info));
assert_eq!(
crate::ExtrinsicWeightRefunded::<Test>::get(),
post_info.calc_unspent(&info)
);
assert_eq!(
BlockWeight::<Test>::get().total(),
post_info.actual_weight.unwrap() + prior_block_weight + base_extrinsic
Expand Down

0 comments on commit 52cc2aa

Please sign in to comment.