chore(trie): StorageRootProvider (#10592)

This commit is contained in:
Roman Krasiuk
2024-08-28 05:56:47 -07:00
committed by GitHub
parent ffc4f641af
commit 29b02cc0e1
13 changed files with 55 additions and 18 deletions

View File

@ -4,6 +4,7 @@ use reth_primitives::{
};
use reth_storage_api::{
AccountReader, BlockHashReader, StateProofProvider, StateProvider, StateRootProvider,
StorageRootProvider,
};
use reth_storage_errors::provider::ProviderResult;
use reth_trie::{
@ -99,7 +100,9 @@ impl StateRootProvider for StateProviderTest {
) -> ProviderResult<(B256, TrieUpdates)> {
unimplemented!("state root computation is not supported")
}
}
impl StorageRootProvider for StateProviderTest {
fn hashed_storage_root(
&self,
_address: Address,