Skip to content

Commit

Permalink
chore: fix typos (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuittont60 authored Nov 7, 2023
1 parent 83a76c2 commit 075770a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion authority/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ fn trigger_call_should_be_free_and_operational() {
})
);

// successfull call doesn't pay fee
// successful call doesn't pay fee
assert_eq!(
trigger_call.dispatch(RuntimeOrigin::signed(1)),
Ok(PostDispatchInfo {
Expand Down
2 changes: 1 addition & 1 deletion benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ macro_rules! whitelist_account {
/// benchmark. Using the simple syntax, the associated dispatchable function
/// maps 1:1 with the benchmark and the name of the benchmark is the same as
/// that of the associated function. However, extended syntax allows
/// for arbitrary expresions to be evaluated in a benchmark (including for
/// for arbitrary expression to be evaluated in a benchmark (including for
/// example, `on_initialize`).
///
/// Note that the ranges are *inclusive* on both sides. This is in contrast to
Expand Down
2 changes: 1 addition & 1 deletion payments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This pallet allows users to create secure reversible payments that keep funds lo
- NeedsReview: The payment has bee disputed and is awaiting settlement by a judge.
- IncentivePercentage: A small share of the payment amount is held in escrow until a payment is completed/cancelled. The Incentive Percentage represents this value.
- 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.
- 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.
- 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.
- CancelBufferBlockLength: This is the time window where the recipient can dispute a cancellation request from the payment creator.

## Interface
Expand Down
8 changes: 4 additions & 4 deletions payments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! this account has the privilege to cancel/release a payment that has been
//! disputed.
//! - 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.
//! extra(limited) amount of bytes, this is referred to as Remark. This can be
//! used by a marketplace to separate/tag payments.
//! - CancelBufferBlockLength: This is the time window where the recipient can
//! dispute a cancellation request from the payment creator.
Expand Down Expand Up @@ -109,7 +109,7 @@ pub mod pallet {
type DisputeResolver: DisputeResolver<Self::AccountId>;
/// Fee handler trait
type FeeHandler: FeeHandler<Self>;
/// Incentive percentage - amount witheld from sender
/// Incentive percentage - amount withheld from sender
#[pallet::constant]
type IncentivePercentage: Get<Percent>;
/// Maximum permitted size of `Remark`
Expand Down Expand Up @@ -392,7 +392,7 @@ pub mod pallet {

/// Allow the creator of a payment to initiate a refund that will return
/// the funds after a configured amount of time that the reveiver has to
/// react and opose the request
/// react and oppose the request
#[pallet::call_index(4)]
#[pallet::weight(T::WeightInfo::request_refund())]
pub fn request_refund(origin: OriginFor<T>, recipient: T::AccountId) -> DispatchResultWithPostInfo {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ impl<T: Config> MultiCurrency<T::AccountId> for Pallet<T> {

// slash free balance
if !free_slashed_amount.is_zero() {
// Cannot underflow becuase free_slashed_amount can never be greater than
// Cannot underflow because free_slashed_amount can never be greater than
// account.free but just to be defensive here.
Self::set_free_balance(
currency_id,
Expand Down

0 comments on commit 075770a

Please sign in to comment.