From 072687b4489925f0cbed4296200a406b66282189 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Thu, 7 Dec 2023 08:54:10 +0100 Subject: [PATCH] fix: wasm build --- flutter/native/src/wasm_client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flutter/native/src/wasm_client.rs b/flutter/native/src/wasm_client.rs index 9060b5dc..ae1aaecf 100644 --- a/flutter/native/src/wasm_client.rs +++ b/flutter/native/src/wasm_client.rs @@ -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}; @@ -30,8 +30,8 @@ impl Client for WasmClient { mint_url: &Url, proofs: Proofs, outputs: Vec, - ) -> Result { - let body = &PostSwapRequest { proofs, outputs }; + ) -> Result { + let body = &PostSplitRequest { proofs, outputs }; let resp = Request::post(mint_url.join("split")?.as_str()) .header("content-type", "application/json") @@ -39,7 +39,7 @@ impl Client for WasmClient { .send() .await?; - extract_response_data::(resp).await + extract_response_data::(resp).await } async fn post_melt_tokens(