mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(rpc): config network specific transaction type in node builder (#10417)
This commit is contained in:
@ -8,6 +8,7 @@ use reth_rpc::EthApi;
|
||||
use reth_rpc_builder::{RpcServerConfig, TransportRpcModuleConfig};
|
||||
use reth_rpc_eth_api::EthApiClient;
|
||||
use reth_rpc_server_types::RpcModuleSelection;
|
||||
use reth_rpc_types::{RichBlock, Transaction};
|
||||
use std::{
|
||||
future::Future,
|
||||
pin::Pin,
|
||||
@ -74,7 +75,7 @@ async fn test_rpc_middleware() {
|
||||
.unwrap();
|
||||
|
||||
let client = handle.http_client().unwrap();
|
||||
EthApiClient::protocol_version(&client).await.unwrap();
|
||||
EthApiClient::<Transaction, RichBlock>::protocol_version(&client).await.unwrap();
|
||||
let count = mylayer.count.load(Ordering::Relaxed);
|
||||
assert_eq!(count, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user