From 34e34177f137cd539de327b1eaae61ea60b0c151 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Fri, 12 May 2023 20:51:07 +0300 Subject: [PATCH] fix(executor): do not insert empty changesets for touched accounts (#2631) --- crates/revm/src/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/revm/src/executor.rs b/crates/revm/src/executor.rs index 7a33652651..5b8641536c 100644 --- a/crates/revm/src/executor.rs +++ b/crates/revm/src/executor.rs @@ -431,7 +431,7 @@ pub fn commit_state_changes( Entry::Occupied(entry) => { let entry = entry.into_mut(); - if matches!(entry.account_state, AccountState::NotExisting) { + if entry.info.is_empty() { let account = to_reth_acc(&account.info); if !(has_state_clear_eip && account.is_empty()) { post_state.create_account(block_number, address, account);