mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix(executor): wiped postate storage (#1849)
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
This commit is contained in:
@@ -69,14 +69,12 @@ impl<'a, SP: StateProvider> StateProvider for PostStateProvider<'a, SP> {
|
||||
storage_key: reth_primitives::StorageKey,
|
||||
) -> Result<Option<reth_primitives::StorageValue>> {
|
||||
if let Some(storage) = self.state.account_storage(&account) {
|
||||
if storage.wiped {
|
||||
return Ok(Some(U256::ZERO))
|
||||
}
|
||||
|
||||
if let Some(value) =
|
||||
storage.storage.get(&U256::from_be_bytes(storage_key.to_fixed_bytes()))
|
||||
{
|
||||
return Ok(Some(*value))
|
||||
} else if storage.wiped {
|
||||
return Ok(Some(U256::ZERO))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user