|
1 | 1 | #![allow(non_snake_case)] |
2 | 2 |
|
3 | | -use fuel_block_aggregator_api::api::protobuf_adapter::{ |
4 | | - block_aggregator_client::BlockAggregatorClient, |
5 | | - block_response::Payload, |
6 | | -}; |
7 | 3 | use fuel_core::{ |
8 | 4 | database::Database, |
9 | 5 | service::{ |
10 | 6 | Config, |
11 | 7 | FuelService, |
12 | 8 | }, |
13 | 9 | }; |
| 10 | +use fuel_core_block_aggregator_api::api::protobuf_adapter::{ |
| 11 | + block_aggregator_client::BlockAggregatorClient, |
| 12 | + block_response::Payload, |
| 13 | +}; |
14 | 14 | use fuel_core_client::client::FuelClient; |
15 | 15 | use fuel_core_types::{ |
16 | 16 | blockchain::block::Block, |
@@ -47,10 +47,11 @@ async fn get_block_range__can_get_serialized_block_from_rpc() { |
47 | 47 | let header = expected_block.header; |
48 | 48 |
|
49 | 49 | // when |
50 | | - let request = fuel_block_aggregator_api::api::protobuf_adapter::BlockRangeRequest { |
51 | | - start: 1, |
52 | | - end: 1, |
53 | | - }; |
| 50 | + let request = |
| 51 | + fuel_core_block_aggregator_api::api::protobuf_adapter::BlockRangeRequest { |
| 52 | + start: 1, |
| 53 | + end: 1, |
| 54 | + }; |
54 | 55 | let actual_bytes = if let Some(Payload::Literal(block)) = rpc_client |
55 | 56 | .get_block_range(request) |
56 | 57 | .await |
@@ -102,7 +103,8 @@ async fn get_block_height__can_get_value_from_rpc() { |
102 | 103 | .expect("could not connect to server"); |
103 | 104 |
|
104 | 105 | // when |
105 | | - let request = fuel_block_aggregator_api::api::protobuf_adapter::BlockHeightRequest {}; |
| 106 | + let request = |
| 107 | + fuel_core_block_aggregator_api::api::protobuf_adapter::BlockHeightRequest {}; |
106 | 108 | let expected_height = 1; |
107 | 109 | let actual_height = rpc_client |
108 | 110 | .get_block_height(request) |
@@ -134,7 +136,7 @@ async fn new_block_subscription__can_get_expect_block() { |
134 | 136 | .expect("could not connect to server"); |
135 | 137 |
|
136 | 138 | let request = |
137 | | - fuel_block_aggregator_api::api::protobuf_adapter::NewBlockSubscriptionRequest {}; |
| 139 | + fuel_core_block_aggregator_api::api::protobuf_adapter::NewBlockSubscriptionRequest {}; |
138 | 140 | let mut stream = rpc_client |
139 | 141 | .new_block_subscription(request) |
140 | 142 | .await |
|
0 commit comments