Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Thiolliere <[email protected]>
  • Loading branch information
muharem and gui1117 authored Dec 22, 2024
1 parent 488440b commit 4c6f5ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polkadot/runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ pub type MetaTxExtension = (
frame_system::CheckSpecVersion<Runtime>,
frame_system::CheckTxVersion<Runtime>,
frame_system::CheckGenesis<Runtime>,
frame_system::CheckEra<Runtime>,
frame_system::CheckMortality<Runtime>,
frame_system::CheckNonce<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/meta-tx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ pub mod pallet {
.map_or_else(|err| err.post_info.actual_weight, |info| info.actual_weight)
.unwrap_or(info.total_weight());

Ok((Some(T::WeightInfo::bare_dispatch() + meta_weight), true.into()).into())
Ok((Some(T::WeightInfo::bare_dispatch().saturating_add(meta_weight)), true.into()).into())
}
}

Expand Down

0 comments on commit 4c6f5ef

Please sign in to comment.