File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
crates/anvil/src/eth/backend Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -739,15 +739,15 @@ impl ForkedStorage {
739
739
accounts : BTreeMap < Address , SerializableAccountRecord > ,
740
740
block_number : u64 ,
741
741
) {
742
- accounts. into_iter ( ) . map ( |( k, v) | {
742
+ accounts. into_iter ( ) . for_each ( |( k, v) | {
743
743
let info = AccountInfo {
744
744
balance : v. balance ,
745
745
nonce : v. nonce ,
746
746
code_hash : KECCAK_EMPTY ,
747
747
code : if v. code . is_empty ( ) { None } else { Some ( Bytecode :: new_raw ( v. code ) ) } ,
748
748
} ;
749
749
750
- self . account_at . insert ( ( k, block_number) , info)
750
+ self . account_at . insert ( ( k, block_number) , info) ;
751
751
} ) ;
752
752
}
753
753
}
Original file line number Diff line number Diff line change @@ -929,6 +929,10 @@ impl Backend {
929
929
. into ( ) ) ;
930
930
}
931
931
932
+ if let Some ( mut fork) = self . get_fork ( ) {
933
+ fork. load_state ( state. clone ( ) ) ;
934
+ }
935
+
932
936
if let Some ( historical_states) = state. historical_states {
933
937
self . states . write ( ) . load_states ( historical_states) ;
934
938
}
You can’t perform that action at this time.
0 commit comments