Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1284

Open
wants to merge 12 commits into
base: manta
Choose a base branch
from
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
* **Describe the current behavior** and **explain which behavior you expected to see instead** and why.
* **Include screenshots or video** which help you demonstrate the steps or point out the part of Manta/Calamari which the suggestion is related to.
* **Include screenshots or video** which help you demonstrate the steps or point out the part of Manta/Calamari to which the suggestion is related to.
* **Explain why this enhancement would be useful** to most Manta users.
* **List some other places where this enhancement exists.**

Expand Down
2 changes: 1 addition & 1 deletion pallets/asset-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub mod pallet {
/// Pallet ID
type PalletId: Get<PalletId>;

/// Weight information for the extrinsics in this pallet.
/// Weight information for the extrinsic in this pallet.
type WeightInfo: crate::weights::WeightInfo;

/// AssetId where Permissionless Assets start, must be greater than `StartNonNativeAssetId`
Expand Down
4 changes: 2 additions & 2 deletions pallets/collator-selection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ pub mod pallet {
Ok(Some(T::WeightInfo::leave_intent(current_count as u32)).into())
}

/// Remove an specified collator.
/// Remove a specified collator.
///
/// - `collator`: Who is going to be remove from collators set.
/// - `collator`: Who is going to be removed from collators set.
#[pallet::call_index(6)]
#[pallet::weight(T::WeightInfo::remove_collator(T::MaxCandidates::get()))]
pub fn remove_collator(
Expand Down
2 changes: 1 addition & 1 deletion pallets/collator-selection/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
};
let session = pallet_session::GenesisConfig::<Test> { keys };
balances.assimilate_storage(&mut t).unwrap();
// collator selection must be initialized before session.
// collator selection must be initialized before the session.
collator_selection.assimilate_storage(&mut t).unwrap();
session.assimilate_storage(&mut t).unwrap();

Expand Down
2 changes: 1 addition & 1 deletion pallets/collator-selection/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ fn kick_mechanism_parity() {
assert_eq!(CollatorSelection::candidates().len(), 2);
assert_eq!(Session::validators().len(), 4); // all candidates active
initialize_to_block(30);
// 4 authored all blocks in this the past session, gets to stay 3 was kicked on session change
// 4 authored all blocks in this past session, gets to stay 3 was kicked on a session change
assert_eq!(CollatorSelection::candidates().len(), 1);
// 3 will be kicked after 1 session delay
assert_eq!(SessionHandlerCollators::get(), vec![1, 2, 3, 4]);
Expand Down
2 changes: 1 addition & 1 deletion pallets/farming/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub mod pallet {
GaugePoolNotExist,
/// Gauge info not exist
GaugeInfoNotExist,
/// Share info is not exist
/// Share info does not exist
ShareInfoNotExists,
/// Pool state is invalid
InvalidPoolState,
Expand Down
2 changes: 1 addition & 1 deletion primitives/manta/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub trait AssetRegistry: AssetIdType + BalanceType {
/// Error Type
type Error;

/// Creates an new asset.
/// Creates a new asset.
///
/// * `asset_id`: the asset id to be created
/// * `metadata`: the metadata that the implementation layer stores
Expand Down
Loading