mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: replace TrieAccount with alloy's (#13397)
This commit is contained in:
@ -170,16 +170,13 @@ fn bundle_state_root(execution_outcome: &ExecutionOutcome) -> B256 {
|
||||
account.info.as_ref().map(|info| {
|
||||
(
|
||||
address,
|
||||
(
|
||||
Account::from(info),
|
||||
storage_root_unhashed(
|
||||
account
|
||||
.storage
|
||||
.iter()
|
||||
.filter(|(_, value)| !value.present_value.is_zero())
|
||||
.map(|(slot, value)| ((*slot).into(), value.present_value)),
|
||||
),
|
||||
),
|
||||
Account::from(info).into_trie_account(storage_root_unhashed(
|
||||
account
|
||||
.storage
|
||||
.iter()
|
||||
.filter(|(_, value)| !value.present_value.is_zero())
|
||||
.map(|(slot, value)| ((*slot).into(), value.present_value)),
|
||||
)),
|
||||
)
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user