From 6d1f3ae8c5bc2131cd79a5023335bc845095dee4 Mon Sep 17 00:00:00 2001 From: johntaiko Date: Wed, 23 Oct 2024 15:57:47 +0800 Subject: [PATCH] fix: incorrect state transition handling (#395) --- 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() {