From 320b199c47f7e54e01af4de86d98894b02e4e0c8 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Wed, 6 Dec 2023 20:43:15 +0100 Subject: [PATCH] fix: test --- moksha-core/src/primitives.rs | 4 ++-- moksha-mint/src/mint.rs | 1 - moksha-wallet/src/client/reqwest.rs | 1 - moksha-wallet/src/wallet.rs | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/moksha-core/src/primitives.rs b/moksha-core/src/primitives.rs index ad76604a..f85f3e52 100644 --- a/moksha-core/src/primitives.rs +++ b/moksha-core/src/primitives.rs @@ -196,10 +196,10 @@ mod tests { }; #[test] - fn test_serialize_empty_split_response() -> anyhow::Result<()> { + fn test_serialize_empty_swap_response() -> anyhow::Result<()> { let response = PostSwapResponse::default(); let serialized = serde_json::to_string(&response)?; - assert_eq!(serialized, "{\"promises\":[]}"); + assert_eq!(serialized, "{\"signatures\":[]}"); Ok(()) } diff --git a/moksha-mint/src/mint.rs b/moksha-mint/src/mint.rs index 6f102c29..186c155c 100644 --- a/moksha-mint/src/mint.rs +++ b/moksha-mint/src/mint.rs @@ -4,7 +4,6 @@ use moksha_core::{ blind::{BlindedMessage, BlindedSignature, TotalAmount}, dhke::Dhke, keyset::MintKeyset, - primitives::PostSwapResponse, proof::Proofs, }; diff --git a/moksha-wallet/src/client/reqwest.rs b/moksha-wallet/src/client/reqwest.rs index be9ecbdf..e073f69a 100644 --- a/moksha-wallet/src/client/reqwest.rs +++ b/moksha-wallet/src/client/reqwest.rs @@ -7,7 +7,6 @@ use moksha_core::{ primitives::{ CashuErrorResponse, CheckFeesRequest, CheckFeesResponse, PaymentRequest, PostMeltRequest, PostMeltResponse, PostMintRequest, PostMintResponse, PostSplitRequest, PostSplitResponse, - PostSwapResponse, }, proof::Proofs, }; diff --git a/moksha-wallet/src/wallet.rs b/moksha-wallet/src/wallet.rs index 19ef6732..1d5e1935 100644 --- a/moksha-wallet/src/wallet.rs +++ b/moksha-wallet/src/wallet.rs @@ -452,7 +452,6 @@ mod tests { use moksha_core::keyset::{Keysets, MintKeyset}; use moksha_core::primitives::{ CheckFeesResponse, PaymentRequest, PostMeltResponse, PostMintResponse, PostSplitResponse, - PostSwapResponse, }; use moksha_core::proof::Proofs; use moksha_core::token::{Token, TokenV3};