Skip to content

Commit 075770a

Browse files
authored
chore: fix typos (#962)
1 parent 83a76c2 commit 075770a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

authority/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ fn trigger_call_should_be_free_and_operational() {
641641
})
642642
);
643643

644-
// successfull call doesn't pay fee
644+
// successful call doesn't pay fee
645645
assert_eq!(
646646
trigger_call.dispatch(RuntimeOrigin::signed(1)),
647647
Ok(PostDispatchInfo {

benchmarking/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ macro_rules! whitelist_account {
7272
/// benchmark. Using the simple syntax, the associated dispatchable function
7373
/// maps 1:1 with the benchmark and the name of the benchmark is the same as
7474
/// that of the associated function. However, extended syntax allows
75-
/// for arbitrary expresions to be evaluated in a benchmark (including for
75+
/// for arbitrary expression to be evaluated in a benchmark (including for
7676
/// example, `on_initialize`).
7777
///
7878
/// Note that the ranges are *inclusive* on both sides. This is in contrast to

payments/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This pallet allows users to create secure reversible payments that keep funds lo
88
- NeedsReview: The payment has bee disputed and is awaiting settlement by a judge.
99
- IncentivePercentage: A small share of the payment amount is held in escrow until a payment is completed/cancelled. The Incentive Percentage represents this value.
1010
- Resolver Account: A resolver account is assigned to every payment created, this account has the privilege to cancel/release a payment that has been disputed.
11-
- Remark: The pallet allows to create payments by optionally providing some extra(limited) amount of bytes, this is reffered to as Remark. This can be used by a marketplace to seperate/tag payments.
11+
- Remark: The pallet allows to create payments by optionally providing some extra(limited) amount of bytes, this is referred to as Remark. This can be used by a marketplace to separate/tag payments.
1212
- CancelBufferBlockLength: This is the time window where the recipient can dispute a cancellation request from the payment creator.
1313

1414
## Interface

payments/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
//! this account has the privilege to cancel/release a payment that has been
1717
//! disputed.
1818
//! - Remark: The pallet allows to create payments by optionally providing some
19-
//! extra(limited) amount of bytes, this is reffered to as Remark. This can be
20-
//! used by a marketplace to seperate/tag payments.
19+
//! extra(limited) amount of bytes, this is referred to as Remark. This can be
20+
//! used by a marketplace to separate/tag payments.
2121
//! - CancelBufferBlockLength: This is the time window where the recipient can
2222
//! dispute a cancellation request from the payment creator.
2323
@@ -109,7 +109,7 @@ pub mod pallet {
109109
type DisputeResolver: DisputeResolver<Self::AccountId>;
110110
/// Fee handler trait
111111
type FeeHandler: FeeHandler<Self>;
112-
/// Incentive percentage - amount witheld from sender
112+
/// Incentive percentage - amount withheld from sender
113113
#[pallet::constant]
114114
type IncentivePercentage: Get<Percent>;
115115
/// Maximum permitted size of `Remark`
@@ -392,7 +392,7 @@ pub mod pallet {
392392

393393
/// Allow the creator of a payment to initiate a refund that will return
394394
/// the funds after a configured amount of time that the reveiver has to
395-
/// react and opose the request
395+
/// react and oppose the request
396396
#[pallet::call_index(4)]
397397
#[pallet::weight(T::WeightInfo::request_refund())]
398398
pub fn request_refund(origin: OriginFor<T>, recipient: T::AccountId) -> DispatchResultWithPostInfo {

tokens/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ impl<T: Config> MultiCurrency<T::AccountId> for Pallet<T> {
12091209

12101210
// slash free balance
12111211
if !free_slashed_amount.is_zero() {
1212-
// Cannot underflow becuase free_slashed_amount can never be greater than
1212+
// Cannot underflow because free_slashed_amount can never be greater than
12131213
// account.free but just to be defensive here.
12141214
Self::set_free_balance(
12151215
currency_id,

0 commit comments

Comments
 (0)