Skip to content

Commit

Permalink
fix: wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Dec 7, 2023
1 parent 30f39bd commit 072687b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flutter/native/src/wasm_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use moksha_core::keyset::Keysets;
use moksha_core::primitives::CashuErrorResponse;
use moksha_core::primitives::{
CheckFeesRequest, CheckFeesResponse, PaymentRequest, PostMeltRequest, PostMeltResponse,
PostMintRequest, PostMintResponse, PostSwapRequest, PostSwapResponse,
PostMintRequest, PostMintResponse, PostSplitRequest, PostSplitResponse,
};
use moksha_core::proof::Proofs;
use moksha_wallet::{client::Client, error::MokshaWalletError};
Expand All @@ -30,16 +30,16 @@ impl Client for WasmClient {
mint_url: &Url,
proofs: Proofs,
outputs: Vec<BlindedMessage>,
) -> Result<PostSwapResponse, MokshaWalletError> {
let body = &PostSwapRequest { proofs, outputs };
) -> Result<PostSplitResponse, MokshaWalletError> {
let body = &PostSplitRequest { proofs, outputs };

let resp = Request::post(mint_url.join("split")?.as_str())
.header("content-type", "application/json")
.json(body)?
.send()
.await?;

extract_response_data::<PostSwapResponse>(resp).await
extract_response_data::<PostSplitResponse>(resp).await
}

async fn post_melt_tokens(
Expand Down

0 comments on commit 072687b

Please sign in to comment.