Skip to content

Commit dc3d0e5

Browse files
leopardracerbkchr
andauthored
Fix Typos in Comments and Error Messages in pallet-xcm (#8645)
**Description:** This pull request corrects minor typos in the `pallet-xcm` module: - In `benchmarking.rs`, the error message for version conversion was updated for consistency. - In `lib.rs`, the word "Futhermore" in a comment was corrected to "Furthermore". These changes improve code readability and maintain consistency in documentation and error messages. No functional or logic changes were made. --------- Co-authored-by: Bastian Köcher <[email protected]>
1 parent caf9993 commit dc3d0e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polkadot/xcm/pallet-xcm/src/benchmarking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ mod benchmarks {
470470
let bad_location: Location = Plurality { id: BodyId::Unit, part: BodyPart::Voice }.into();
471471
let bad_location = VersionedLocation::from(bad_location)
472472
.into_version(older_xcm_version)
473-
.expect("Version convertion should work");
473+
.expect("Version conversion should work");
474474
let current_version = T::AdvertisedXcmVersion::get();
475475
VersionNotifyTargets::<T>::insert(
476476
current_version,

polkadot/xcm/pallet-xcm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3421,7 +3421,7 @@ impl<T: Config> Pallet<T> {
34213421
/// NOTE: `notify` gets called as part of handling an incoming message, so it should be
34223422
/// lightweight. Its weight is estimated during this function and stored ready for
34233423
/// weighing `ReportOutcome` on the way back. If it turns out to be heavier once it returns
3424-
/// then reporting the outcome will fail. Futhermore if the estimate is too high, then it
3424+
/// then reporting the outcome will fail. Furthermore if the estimate is too high, then it
34253425
/// may be put in the overweight queue and need to be manually executed.
34263426
pub fn report_outcome_notify(
34273427
message: &mut Xcm<()>,

0 commit comments

Comments
 (0)