Skip to content

Commit

Permalink
adjust in memory blocks state
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Aug 21, 2024
1 parent aa82d5d commit 9170eba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/storage/provider/src/providers/blockchain_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2130,14 +2130,16 @@ mod tests {
let (database_changesets, database_state) = random_changeset_range(
&mut rng,
&database_blocks,
accounts.iter().cloned().map(|(addr, acc)| (addr, (acc, Vec::new()))),
accounts.into_iter().map(|(address, account)| (address, (account, Vec::new()))),
0..0,
0..0,
);
let (in_memory_changesets, in_memory_state) = random_changeset_range(
&mut rng,
&in_memory_blocks,
accounts.iter().cloned().map(|(addr, acc)| (addr, (acc, Vec::new()))),
database_state
.iter()
.map(|(address, (account, storage))| (*address, (*account, storage.clone()))),
0..0,
0..0,
);
Expand Down

0 comments on commit 9170eba

Please sign in to comment.