File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -256,15 +256,14 @@ impl<T: DatabaseRef<Error = DatabaseError> + Debug> MaybeFullDatabase for CacheD
256
256
}
257
257
258
258
fn read_as_state_snapshot ( & self ) -> StateSnapshot {
259
- let db_accounts = self . cache . accounts . clone ( ) ;
260
259
let mut accounts = HashMap :: default ( ) ;
261
260
let mut account_storage = HashMap :: default ( ) ;
262
261
263
- for ( addr, acc) in db_accounts {
264
- account_storage. insert ( addr, acc. storage . clone ( ) ) ;
265
- let mut info = acc. info ;
262
+ for ( addr, acc) in & self . cache . accounts {
263
+ account_storage. insert ( * addr, acc. storage . clone ( ) ) ;
264
+ let mut info = acc. info . clone ( ) ;
266
265
info. code = self . cache . contracts . get ( & info. code_hash ) . cloned ( ) ;
267
- accounts. insert ( addr, info) ;
266
+ accounts. insert ( * addr, info) ;
268
267
}
269
268
270
269
let block_hashes = self . cache . block_hashes . clone ( ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl Default for SolidityHelper {
51
51
52
52
impl fmt:: Debug for SolidityHelper {
53
53
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
54
- let this = self . inner . borrow_mut ( ) ;
54
+ let this = self . inner . borrow ( ) ;
55
55
f. debug_struct ( "SolidityHelper" )
56
56
. field ( "errored" , & this. errored )
57
57
. field ( "do_paint" , & this. do_paint )
Original file line number Diff line number Diff line change @@ -16,13 +16,8 @@ export type Platform = Extract<
16
16
'darwin' | 'linux' | 'win32'
17
17
>
18
18
19
- /**
20
- * foundry doesn't ship arm64 binaries for windows
21
- */
22
- export type ArchitecturePlatform = Exclude <
23
- `${Platform } -${Architecture } `,
24
- 'win32-arm64'
25
- >
19
+ // Note: we intentionally don't export a combined `Platform-Architecture` alias here,
20
+ // since only specific pairs are supported (see `BINARY_DISTRIBUTION_PACKAGES`).
26
21
27
22
export const BINARY_DISTRIBUTION_PACKAGES = {
28
23
darwin : {
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ function extractFileFromTarball(
105
105
if ( fileName === filepath )
106
106
return tarballBuffer . subarray ( offset , offset + fileSize )
107
107
108
- // Clamp offset to the uppoer multiple of 512
108
+ // Clamp offset to the upper multiple of 512
109
109
offset = ( offset + fileSize + 511 ) & ~ 511
110
110
}
111
111
throw new Error ( `File ${ filepath } not found in tarball` )
You can’t perform that action at this time.
0 commit comments