mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: use reth-ethereum-primitives (#13830)
This commit is contained in:
@ -15,7 +15,7 @@ use reth::{
|
||||
tasks::TaskManager,
|
||||
};
|
||||
use reth_chainspec::ChainSpec;
|
||||
use reth_node_core::{args::RpcServerArgs, node_config::NodeConfig};
|
||||
use reth_node_core::{args::RpcServerArgs, node_config::NodeConfig, primitives::SignedTransaction};
|
||||
use reth_node_ethereum::EthereumNode;
|
||||
|
||||
#[tokio::main]
|
||||
@ -51,7 +51,7 @@ async fn main() -> eyre::Result<()> {
|
||||
let head = notifications.next().await.unwrap();
|
||||
|
||||
let tx = &head.tip().body().transactions().next().unwrap();
|
||||
assert_eq!(tx.hash(), hash);
|
||||
assert_eq!(*tx.tx_hash(), hash);
|
||||
println!("mined transaction: {hash}");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user