Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 3bfb4cc

Browse files
Sacha Lanskybkchr
andauthored
Fix minor typos (#11550)
* Fix minor typos * FMT Co-authored-by: Bastian Köcher <info@kchr.de>
1 parent 400e075 commit 3bfb4cc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frame/contracts/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ pub trait AddressGenerator<T: frame_system::Config> {
165165
/// Default address generator.
166166
///
167167
/// This is the default address generator used by contract instantiation. Its result
168-
/// is only dependend on its inputs. It can therefore be used to reliably predict the
169-
/// address of a contract. This is akin to the formular of eth's CREATE2 opcode. There
168+
/// is only dependant on its inputs. It can therefore be used to reliably predict the
169+
/// address of a contract. This is akin to the formula of eth's CREATE2 opcode. There
170170
/// is no CREATE equivalent because CREATE2 is strictly more powerful.
171171
///
172172
/// Formula: `hash(deploying_address ++ code_hash ++ salt)`
@@ -231,7 +231,7 @@ pub mod pallet {
231231

232232
#[pallet::config]
233233
pub trait Config: frame_system::Config {
234-
/// The time implementation used to supply timestamps to conntracts through `seal_now`.
234+
/// The time implementation used to supply timestamps to contracts through `seal_now`.
235235
type Time: Time;
236236

237237
/// The generator used to supply randomness to contracts through `seal_random`.
@@ -339,7 +339,7 @@ pub mod pallet {
339339
///
340340
/// For more information check out: <https://github.com/paritytech/substrate/issues/10301>
341341
///
342-
/// [`DefaultContractAccessWeight`] is a safe default to be used for polkadot or kusama
342+
/// [`DefaultContractAccessWeight`] is a safe default to be used for Polkadot or Kusama
343343
/// parachains.
344344
///
345345
/// # Note
@@ -1044,7 +1044,7 @@ where
10441044
})?;
10451045
// The open deposit will be charged during execution when the
10461046
// uploaded module does not already exist. This deposit is not part of the
1047-
// storage meter because it is not transfered to the contract but
1047+
// storage meter because it is not transferred to the contract but
10481048
// reserved on the uploading account.
10491049
(executable.open_deposit(), executable)
10501050
},

frame/contracts/src/storage/meter.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ pub type DepositOf<T> = Deposit<BalanceOf<T>>;
3535
/// A production root storage meter that actually charges from its origin.
3636
pub type Meter<T> = RawMeter<T, ReservingExt, Root>;
3737

38-
/// A poduction nested storage meter that actually charges from its origin.
38+
/// A production nested storage meter that actually charges from its origin.
3939
pub type NestedMeter<T> = RawMeter<T, ReservingExt, Nested>;
4040

41-
/// A poduction storage meter that actually charges from its origin.
41+
/// A production storage meter that actually charges from its origin.
4242
///
4343
/// This can be used where we want to be generic over the state (Root vs. Nested).
4444
pub type GenericMeter<T, S> = RawMeter<T, ReservingExt, S>;
@@ -53,8 +53,8 @@ pub trait Ext<T: Config> {
5353
///
5454
/// `origin`: The origin of the call stack from which is responsible for putting down a deposit.
5555
/// `limit`: The limit with which the meter was constructed.
56-
/// `min_leftover`: How much `free_balance` in addition to the ed should be left inside the
57-
/// `origin` account.
56+
/// `min_leftover`: How much `free_balance` in addition to the existential deposit (ed) should
57+
/// be left inside the `origin` account.
5858
///
5959
/// Returns the limit that should be used by the meter. If origin can't afford the `limit`
6060
/// it returns `Err`.
@@ -551,7 +551,7 @@ mod tests {
551551
let mut meter = TestMeter::new(&ALICE, Some(1_000), 0).unwrap();
552552
assert_eq!(meter.available(), 1_000);
553553

554-
// an empty charge foes not create a `Charge` entry
554+
// an empty charge does not create a `Charge` entry
555555
let mut nested0 = meter.nested();
556556
nested0.charge(&Default::default()).unwrap();
557557
meter.absorb(nested0, &ALICE, &BOB, None);

0 commit comments

Comments
 (0)