From 8d1d68fe6f4ef69cde6577315d4d33fb8d6675ff Mon Sep 17 00:00:00 2001 From: Micke <155267459+reallesee@users.noreply.github.com> Date: Mon, 14 Jul 2025 21:15:54 +0200 Subject: [PATCH] fix: optimize storage slot iteration in ProviderDb --- core/src/provider/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/provider/db.rs b/core/src/provider/db.rs index ba29ac414..579ed1f59 100644 --- a/core/src/provider/db.rs +++ b/core/src/provider/db.rs @@ -351,7 +351,7 @@ impl<'a, BDP: BlockDataProvider> OptimisticDatabase for ProviderDb<'a, BDP> { else { return false; }; - for ((address, index), value) in take(&mut self.pending_slots).into_iter().zip(slots.iter()) + for ((address, index), &value) in take(&mut self.pending_slots).into_iter().zip(slots.iter()) { self.staging_db .insert_account_storage(&address, index, *value);