Skip to content

Commit bc9912e

Browse files
committed
touch account
1 parent 2853a88 commit bc9912e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

crates/op-rbuilder/src/builders/context.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ use reth_primitives_traits::{InMemorySize, Recovered, SignedTransaction};
3737
use reth_revm::{State, context::Block};
3838
use reth_transaction_pool::{BestTransactionsAttributes, PoolTransaction};
3939
use revm::{
40-
DatabaseCommit, DatabaseRef, context::result::ResultAndState, interpreter::as_u64_saturated,
41-
primitives::HashMap, state::EvmState,
40+
DatabaseCommit, DatabaseRef,
41+
context::result::ResultAndState,
42+
interpreter::as_u64_saturated,
43+
primitives::HashMap,
44+
state::{Account, EvmState},
4245
};
4346
use std::{
4447
collections::hash_map::Entry,
@@ -1278,7 +1281,9 @@ impl StateWithIncrements {
12781281
Entry::Vacant(entry) => {
12791282
let mut account = db.basic(*addr)?.unwrap_or_default();
12801283
account.balance = account.balance.saturating_add(*delta);
1281-
entry.insert(account.into());
1284+
let mut account: Account = account.into();
1285+
account.mark_touch();
1286+
entry.insert(account);
12821287
}
12831288
}
12841289
}

0 commit comments

Comments
 (0)