Skip to content

Commit 6be7129

Browse files
Improve Receipt query params struct name
1 parent f4e8143 commit 6be7129

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aggregation_mode/batcher/src/server/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use sqlx::types::BigDecimal;
1212

1313
use super::{
1414
helpers::format_merkle_paths,
15-
types::{AppResponse, GetReceiptsParams},
15+
types::{AppResponse, GetReceiptsQueryParams},
1616
};
1717

1818
use crate::{
@@ -175,7 +175,7 @@ impl BatcherServer {
175175
// In case of also receiving a nonce on the query param, it returns only the merkle proof for that nonce.
176176
async fn get_receipts(
177177
req: HttpRequest,
178-
params: web::Query<GetReceiptsParams>,
178+
params: web::Query<GetReceiptsQueryParams>,
179179
) -> impl Responder {
180180
let Some(state) = req.app_data::<Data<BatcherServer>>() else {
181181
return HttpResponse::InternalServerError().json(AppResponse::new_unsucessfull(

aggregation_mode/batcher/src/server/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl AppResponse {
2828

2929
/// Query parameters accepted by `GET /proof/merkle`, containing an optional proof id.
3030
#[derive(Deserialize, Clone)]
31-
pub(super) struct GetReceiptsParams {
31+
pub(super) struct GetReceiptsQueryParams {
3232
pub address: Option<String>,
3333
pub nonce: Option<i64>,
3434
}

0 commit comments

Comments
 (0)