From 9170ebaad6f48ce8be05833d47e0a4a9cd296a6b Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Wed, 21 Aug 2024 12:38:52 +0100 Subject: [PATCH] adjust in memory blocks state --- .../storage/provider/src/providers/blockchain_provider.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/storage/provider/src/providers/blockchain_provider.rs b/crates/storage/provider/src/providers/blockchain_provider.rs index f39aad8ca747..4a14d05790e9 100644 --- a/crates/storage/provider/src/providers/blockchain_provider.rs +++ b/crates/storage/provider/src/providers/blockchain_provider.rs @@ -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, );