pub trait StorageRootProvider: Send + Sync {
// Required method
fn storage_root(
&self,
address: Address,
hashed_storage: HashedStorage,
) -> ProviderResult<B256>;
}
Expand description
A type that can compute the storage root for a given account.
Required Methods§
sourcefn storage_root(
&self,
address: Address,
hashed_storage: HashedStorage,
) -> ProviderResult<B256>
fn storage_root( &self, address: Address, hashed_storage: HashedStorage, ) -> ProviderResult<B256>
Returns the storage root of the HashedStorage
for target address on top of the current
state.