Skip to content

Commit d00c05c

Browse files
authored
chore: fix some typos in comment (#1562)
Signed-off-by: goodfirm <[email protected]>
1 parent db4411c commit d00c05c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/accounts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Frontier provides two different strategies for handling `H160` addresses.
44

55
## H256 -> H160 mapping
66

7-
The first strategy consists of of a truncated hash scheme, where the first 160 LE bytes of a `H256` address are used to form the `H160` address.
7+
The first strategy consists of a truncated hash scheme, where the first 160 LE bytes of a `H256` address are used to form the `H160` address.
88

99
`AccountId32` is the Account type used for `frame_system::pallet::Config::AccountId`.
1010

frame/evm/precompile/storage-cleaner/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ where
9191
.count();
9292
deleted_entries = deleted_entries.saturating_add(deleted as u64);
9393

94-
// Check if the storage of this contract has been completly removed
94+
// Check if the storage of this contract has been completely removed
9595
if pallet_evm::AccountStorages::<Runtime>::iter_key_prefix(address)
9696
.next()
9797
.is_none()

precompiles/src/precompile_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ where
716716
Ok(mut recursion_level_map) => {
717717
let recursion_level = match recursion_level_map.get_mut(&code_address) {
718718
Some(recursion_level) => recursion_level,
719-
None => return Some(Err(revert("Couldn't retreive precompile nesting"))),
719+
None => return Some(Err(revert("Couldn't retrieve precompile nesting"))),
720720
};
721721

722722
*recursion_level -= 1;

precompiles/src/testing/handle.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,17 @@ impl PrecompileHandle for MockHandle {
178178
Ok(())
179179
}
180180

181-
/// Retreive the code address (what is the address of the precompile being called).
181+
/// Retrieve the code address (what is the address of the precompile being called).
182182
fn code_address(&self) -> H160 {
183183
self.code_address
184184
}
185185

186-
/// Retreive the input data the precompile is called with.
186+
/// Retrieve the input data the precompile is called with.
187187
fn input(&self) -> &[u8] {
188188
&self.input
189189
}
190190

191-
/// Retreive the context in which the precompile is executed.
191+
/// Retrieve the context in which the precompile is executed.
192192
fn context(&self) -> &Context {
193193
&self.context
194194
}
@@ -198,7 +198,7 @@ impl PrecompileHandle for MockHandle {
198198
self.is_static
199199
}
200200

201-
/// Retreive the gas limit of this call.
201+
/// Retrieve the gas limit of this call.
202202
fn gas_limit(&self) -> Option<u64> {
203203
Some(self.gas_limit)
204204
}

0 commit comments

Comments
 (0)