Skip to content

Commit

Permalink
fix: empty struct
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Nov 13, 2024
1 parent 357d9fc commit 3404ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/context/config/src/client/env/proxy/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<'a, T: Transport> ContextProxyQuery<'a, T> {
}

pub async fn get_number_of_active_proposals(&self) -> Result<u16, ClientError<T>> {
let params = ActiveProposalRequest {};
let params = ActiveProposalRequest;

utils::send_near_or_starknet(&self.client, Operation::Read(params)).await
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::client::protocol::near::Near;
use crate::client::protocol::starknet::Starknet;

#[derive(Copy, Clone, Debug, Serialize)]
pub(super) struct ActiveProposalRequest {}
pub(super) struct ActiveProposalRequest;

impl Method<Near> for ActiveProposalRequest {
const METHOD: &'static str = "get_active_proposals_limit";
Expand Down

0 comments on commit 3404ae4

Please sign in to comment.