mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make more block types generic (#12812)
This commit is contained in:
@ -319,7 +319,9 @@ mod tests {
|
||||
BasicBlockExecutorProvider, BatchExecutor, BlockExecutorProvider, Executor,
|
||||
};
|
||||
use reth_execution_types::BlockExecutionOutput;
|
||||
use reth_primitives::{public_key_to_address, Account, Block, BlockBody, Transaction};
|
||||
use reth_primitives::{
|
||||
public_key_to_address, Account, Block, BlockBody, BlockExt, Transaction,
|
||||
};
|
||||
use reth_revm::{
|
||||
database::StateProviderDatabase, test_utils::StateProviderTest, TransitionState,
|
||||
};
|
||||
|
||||
@ -63,7 +63,7 @@ where
|
||||
|
||||
let head = notifications.next().await.unwrap();
|
||||
|
||||
let tx = head.tip().transactions().next().unwrap();
|
||||
let tx = &head.tip().transactions()[0];
|
||||
assert_eq!(tx.hash(), hash);
|
||||
println!("mined transaction: {hash}");
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ use reth_payload_builder_primitives::PayloadBuilderError;
|
||||
use reth_payload_primitives::PayloadBuilderAttributes;
|
||||
use reth_primitives::{
|
||||
proofs::{self},
|
||||
Block, BlockBody, EthereumHardforks, Receipt,
|
||||
Block, BlockBody, BlockExt, EthereumHardforks, Receipt,
|
||||
};
|
||||
use reth_provider::{ChainSpecProvider, StateProviderFactory};
|
||||
use reth_revm::database::StateProviderDatabase;
|
||||
|
||||
Reference in New Issue
Block a user