Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 86d0039

Browse files
committed
nits
1 parent 872336c commit 86d0039

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/shared.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@ impl ConcurrentCache {
4545
account.code_hash = KECCAK_EMPTY;
4646
}
4747
}
48+
49+
/// Insert account info but not override storage
50+
pub fn insert_account_info(&mut self, address: Address, mut info: AccountInfo) {
51+
self.insert_contract(&mut info);
52+
self.accounts.entry(address).or_default().info = info;
53+
}
4854
}
4955

50-
/// Inner for [`Root`]
56+
/// Inner for [`Root`].
5157
pub struct RootInner<Db> {
5258
cache: ConcurrentCache,
5359
db: Db,

0 commit comments

Comments
 (0)