Skip to content

Commit

Permalink
fix(sdk): support relative urls (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Aug 4, 2024
1 parent 390a2b3 commit c6e501a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prover-sdk/src/prover_sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ impl ProverSDK {
///
/// Returns a `ProverSDKBuilder` which can be used to further configure the ProverSDK.
pub async fn new(access_key: ProverAccessKey, url: Url) -> Result<ProverSDK, ProverSdkErrors> {
let auth_url = url.join("/auth").map_err(ProverSdkErrors::UrlParseError)?;
let auth_url = url.join("auth").map_err(ProverSdkErrors::UrlParseError)?;
let prover_url = url
.join("/prove/cairo1")
.join("prove/cairo1")
.map_err(ProverSdkErrors::UrlParseError)?;

ProverSDKBuilder::new(auth_url, prover_url)
Expand Down

0 comments on commit c6e501a

Please sign in to comment.