Skip to content

Commit

Permalink
fix typos in docs and comments (#1259)
Browse files Browse the repository at this point in the history
Signed-off-by: xiaolou86 <20718693+xiaolou86@users.noreply.github.com>
Co-authored-by: Jamie <djptux@gmail.com>
  • Loading branch information
xiaolou86 and Dengjianping authored Nov 27, 2023
1 parent 5a4cd1f commit 8b3590f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Manta/Calamari's version number:
where:

* `<x>` is the major version, i.e. major product release.
* `<y>` is the middle verison, i.e. adding major features.
* `<y>` is the middle version, i.e. adding major features.
* `<z>` is the minor version, i.e. performance improvement and bug fixes.

## Contributing
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 @@ -419,7 +419,7 @@ pub mod pallet {
#[pallet::getter(fn get_para_id)]
pub type AllowedDestParaIds<T: Config> = StorageMap<_, Blake2_128Concat, ParaId, AssetCount>;

/// Multilocation of assets that should not be transfered out of the chain
/// Multilocation of assets that should not be transferred out of the chain
#[pallet::storage]
#[pallet::getter(fn get_filtered_location)]
pub type FilteredOutgoingAssetLocations<T: Config> =
Expand Down
2 changes: 1 addition & 1 deletion pallets/manta-pay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ pub mod pallet {
/// Sender Ledger [`OutgoingNote`] failed to decode
SenderLedgerOutgoingNodeDecodeFailed,

/// Reciever Ledger Utxo decode failed
/// Receiver Ledger Utxo decode failed
ReceiverLedgerUtxoDecodeFailed,

/// Receiver Ledger Wrong Checksum Error
Expand Down
4 changes: 2 additions & 2 deletions pallets/manta-sbt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ pub mod pallet {
SBTReserved {
/// Public Account reserving SBT mints
who: T::AccountId,
/// Account which recieves reserved AssetIds, can be the same as the above account
/// Account which receives reserved AssetIds, can be the same as the above account
reserve_account: T::AccountId,
/// Start of `AssetIds` reserved for use on private ledger
start_id: StandardAssetId,
Expand Down Expand Up @@ -979,7 +979,7 @@ pub mod pallet {
/// Sender Ledger [`OutgoingNote`] failed to decode
SenderLedgerOutgoingNodeDecodeFailed,

/// Reciever Ledger Utxo decode failed
/// Receiver Ledger Utxo decode failed
ReceiverLedgerUtxoDecodeFailed,

/// Receiver Ledger Wrong Checksum Error
Expand Down
4 changes: 2 additions & 2 deletions pallets/vesting/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ pub mod pallet {

let now = T::Timestamp::now().as_secs();
for (n, o) in new_schedule.iter().zip(old_schedule.iter()) {
// n == o means we will partialy update vesting schedule.
// n == o means we will partially update vesting schedule.
// n > o means new schedule is future schedule.
// n < o && n > now, also fine.
if o.1 <= now {
// Check partialy updating vesting schedule.
// Check partially updating vesting schedule.
// We don't change past schedule, just skip it.
ensure!(*n == o.1, Error::<T>::InvalidSchedule);
} else {
Expand Down

0 comments on commit 8b3590f

Please sign in to comment.