Skip to content

Commit c35113d

Browse files
tbroQuentinI
andauthored
Fix solver client (#1853)
Fix the Url path Co-authored-by: Artemii Gerasimovich <[email protected]>
1 parent 5d76faf commit c35113d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

types/src/v0/impls/auction.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::{
44
v0_3::{BidTx, BidTxBody, FullNetworkTx, SolverAuctionResults},
55
FeeAccount, FeeAmount, FeeError, FeeInfo, NamespaceId, SeqTypes,
66
};
7+
use anyhow::Context;
78
use async_trait::async_trait;
89
use committable::{Commitment, Committable};
910
use hotshot_types::{
@@ -291,10 +292,14 @@ impl<TYPES: NodeType> AuctionResultsProvider<TYPES> for SolverAuctionResultsProv
291292
&self,
292293
view_number: TYPES::Time,
293294
) -> anyhow::Result<TYPES::AuctionResult> {
294-
let resp = SurfClient::new(self.0.clone())
295-
.get::<TYPES::AuctionResult>(&format!("/v0/api/auction_results/{}", *view_number))
296-
.send()
297-
.await?;
295+
let resp = SurfClient::new(
296+
self.0
297+
.join("marketplace-solver/")
298+
.context("Malformed solver URL")?,
299+
)
300+
.get::<TYPES::AuctionResult>(&format!("auction_results/{}", *view_number))
301+
.send()
302+
.await?;
298303
Ok(resp)
299304
}
300305
}

0 commit comments

Comments
 (0)