Skip to content

Commit 8309d0e

Browse files
committed
refactor: better name for empty data response
1 parent 548bf0a commit 8309d0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aggregation_mode/sdk/src/gateway/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use sp1_sdk::{SP1ProofWithPublicValues, SP1VerifyingKey};
55

66
use crate::{
77
gateway::types::{
8-
EmptyData, GatewayResponse, NonceResponse, ReceiptsQueryParams, ReceiptsResponse,
8+
EmptyDataResponse, GatewayResponse, NonceResponse, ReceiptsQueryParams, ReceiptsResponse,
99
SubmitProofResponse, SubmitSP1ProofMessage,
1010
},
1111
types::Network,
@@ -135,7 +135,7 @@ impl<S: Signer> AggregationModeGatewayProvider<S> {
135135
.map_err(|e| GatewayError::Request(e.to_string()))?;
136136

137137
if !(200..300).contains(&response.status().as_u16()) {
138-
let payload: GatewayResponse<EmptyData> = response
138+
let payload: GatewayResponse<EmptyDataResponse> = response
139139
.json()
140140
.await
141141
.map_err(|e| GatewayError::Request(e.to_string()))?;

aggregation_mode/sdk/src/gateway/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct GatewayResponse<T> {
1515
}
1616

1717
#[derive(Debug, Deserialize)]
18-
pub(super) struct EmptyData {}
18+
pub(super) struct EmptyDataResponse {}
1919

2020
#[derive(Debug, Deserialize)]
2121
pub struct NonceResponse {

0 commit comments

Comments
 (0)