Skip to content

Commit

Permalink
feat: changesetreader for mockethprovider (#5410)
Browse files Browse the repository at this point in the history
  • Loading branch information
loocapro authored Nov 13, 2023
1 parent cf54292 commit e11ddef
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions crates/storage/provider/src/test_utils/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use crate::{
bundle_state::BundleStateWithReceipts,
traits::{BlockSource, ReceiptProvider},
AccountReader, BlockHashReader, BlockIdReader, BlockNumReader, BlockReader, BlockReaderIdExt,
BundleStateDataProvider, ChainSpecProvider, EvmEnvProvider, HeaderProvider,
BundleStateDataProvider, ChainSpecProvider, ChangeSetReader, EvmEnvProvider, HeaderProvider,
ReceiptProviderIdExt, StateProvider, StateProviderBox, StateProviderFactory, StateRootProvider,
TransactionVariant, TransactionsProvider, WithdrawalsProvider,
};
use parking_lot::Mutex;
use reth_db::models::StoredBlockBodyIndices;
use reth_db::models::{AccountBeforeTx, StoredBlockBodyIndices};
use reth_interfaces::{provider::ProviderError, RethResult};
use reth_primitives::{
keccak256, trie::AccountProof, Account, Address, Block, BlockHash, BlockHashOrNumber, BlockId,
Expand Down Expand Up @@ -638,3 +638,12 @@ impl WithdrawalsProvider for MockEthProvider {
unimplemented!()
}
}

impl ChangeSetReader for MockEthProvider {
fn account_block_changeset(
&self,
_block_number: BlockNumber,
) -> RethResult<Vec<AccountBeforeTx>> {
Ok(Vec::default())
}
}

0 comments on commit e11ddef

Please sign in to comment.