mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 08:08:15 -05:00
chore(witness): simplify wiped storage retrieval (#12637)
This commit is contained in:
@@ -213,11 +213,10 @@ where
|
||||
let mut storage_cursor =
|
||||
self.hashed_cursor_factory.hashed_storage_cursor(*hashed_address)?;
|
||||
// position cursor at the start
|
||||
if let Some((hashed_slot, _)) = storage_cursor.seek(B256::ZERO)? {
|
||||
storage_keys.insert(hashed_slot);
|
||||
}
|
||||
while let Some((hashed_slot, _)) = storage_cursor.next()? {
|
||||
let mut current_entry = storage_cursor.seek(B256::ZERO)?;
|
||||
while let Some((hashed_slot, _)) = current_entry {
|
||||
storage_keys.insert(hashed_slot);
|
||||
current_entry = storage_cursor.next()?;
|
||||
}
|
||||
}
|
||||
proof_targets.insert(*hashed_address, storage_keys);
|
||||
|
||||
Reference in New Issue
Block a user