mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: move StateRootProvider to StateProvider trait (#2392)
This commit is contained in:
@ -600,7 +600,9 @@ mod tests {
|
||||
constants::ETH_TO_WEI, hex_literal::hex, keccak256, Account, Address, BlockNumber,
|
||||
Bytecode, Bytes, ChainSpecBuilder, ForkCondition, StorageKey, H256, MAINNET, U256,
|
||||
};
|
||||
use reth_provider::{post_state::Storage, AccountProvider, BlockHashProvider, StateProvider};
|
||||
use reth_provider::{
|
||||
post_state::Storage, AccountProvider, BlockHashProvider, StateProvider, StateRootProvider,
|
||||
};
|
||||
use reth_rlp::Decodable;
|
||||
use std::{collections::HashMap, str::FromStr};
|
||||
|
||||
@ -655,6 +657,12 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
impl StateRootProvider for StateProviderTest {
|
||||
fn state_root(&self, _post_state: PostState) -> reth_interfaces::Result<H256> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl StateProvider for StateProviderTest {
|
||||
fn storage(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user