mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(trie): expose storage proofs (#11550)
This commit is contained in:
@ -11,7 +11,8 @@ use reth_storage_api::{
|
||||
};
|
||||
use reth_storage_errors::provider::ProviderResult;
|
||||
use reth_trie::{
|
||||
updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof, TrieInput,
|
||||
updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof, StorageProof,
|
||||
TrieInput,
|
||||
};
|
||||
|
||||
/// Mock state for testing
|
||||
@ -102,6 +103,15 @@ impl StorageRootProvider for StateProviderTest {
|
||||
) -> ProviderResult<B256> {
|
||||
unimplemented!("storage root is not supported")
|
||||
}
|
||||
|
||||
fn storage_proof(
|
||||
&self,
|
||||
_address: Address,
|
||||
_slot: B256,
|
||||
_hashed_storage: HashedStorage,
|
||||
) -> ProviderResult<StorageProof> {
|
||||
unimplemented!("proof generation is not supported")
|
||||
}
|
||||
}
|
||||
|
||||
impl StateProofProvider for StateProviderTest {
|
||||
|
||||
Reference in New Issue
Block a user