From 4e322d6b77b005c27ad3dcd7c725ffaca7fe3b27 Mon Sep 17 00:00:00 2001 From: john xu Date: Wed, 23 Oct 2024 14:40:47 +0800 Subject: [PATCH] fix: incorrect state transition handling --- lib/src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/builder.rs b/lib/src/builder.rs index 7e3a221a..e1dae454 100644 --- a/lib/src/builder.rs +++ b/lib/src/builder.rs @@ -203,12 +203,12 @@ impl + DatabaseCommit + OptimisticDatabase> .into_iter() .map(|(address, bundle_account)| { let mut account = Account { - info: bundle_account.info.unwrap_or_default(), + info: bundle_account.account_info().unwrap_or_default(), storage: bundle_account.storage, status: AccountStatus::default(), }; account.mark_touch(); - if bundle_account.status.was_destroyed() { + if bundle_account.info.is_none() { account.mark_selfdestruct(); } if bundle_account.original_info.is_none() {