fix(poststate): handle secondary selfdestructs (#2634)

This commit is contained in:
Roman Krasiuk
2023-05-12 20:32:43 +03:00
committed by GitHub
parent 8c1a1e0e06
commit b16678da1d
3 changed files with 350 additions and 69 deletions

View File

@@ -604,7 +604,7 @@ mod tests {
Bytecode, Bytes, ChainSpecBuilder, ForkCondition, StorageKey, H256, MAINNET, U256,
};
use reth_provider::{
post_state::{ChangedStorage, Storage},
post_state::{Storage, StorageTransition, StorageWipe},
AccountProvider, BlockHashProvider, StateProvider, StateRootProvider,
};
use reth_rlp::Decodable;
@@ -823,8 +823,8 @@ mod tests {
block.number,
BTreeMap::from([(
account1,
ChangedStorage {
wiped: false,
StorageTransition {
wipe: StorageWipe::None,
// Slot 1 changed from 0 to 2
storage: BTreeMap::from([(U256::from(1), U256::ZERO)])
}