Skip to content

Commit 6d1f3ae

Browse files
authored
fix: incorrect state transition handling (#395)
1 parent 4bacdac commit 6d1f3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ impl<DB: Database<Error = ProviderError> + DatabaseCommit + OptimisticDatabase>
203203
.into_iter()
204204
.map(|(address, bundle_account)| {
205205
let mut account = Account {
206-
info: bundle_account.info.unwrap_or_default(),
206+
info: bundle_account.account_info().unwrap_or_default(),
207207
storage: bundle_account.storage,
208208
status: AccountStatus::default(),
209209
};
210210
account.mark_touch();
211-
if bundle_account.status.was_destroyed() {
211+
if bundle_account.info.is_none() {
212212
account.mark_selfdestruct();
213213
}
214214
if bundle_account.original_info.is_none() {

0 commit comments

Comments
 (0)