File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
frame/evm/precompile/storage-cleaner/src Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ( )
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments