Skip to content

Commit

Permalink
fix(trie): delete self destructed accounts from sparse trie (paradigm…
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Dec 6, 2024
1 parent cb3e9f8 commit e29b4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ where
trace!(target: "engine::root", ?address, ?hashed_address, "Adding account to state update");

let destroyed = account.is_selfdestructed();
let info = if account.is_empty() { None } else { Some(account.info.into()) };
let info = if destroyed { None } else { Some(account.info.into()) };
hashed_state_update.accounts.insert(hashed_address, info);

let mut changed_storage_iter = account
Expand Down

0 comments on commit e29b4ee

Please sign in to comment.