From 49e845e6ec91f8eb11f0f2ae19b85ef8bfba09c4 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Fri, 17 Nov 2023 01:37:04 -0300 Subject: [PATCH] fix deprecated models --- cashu/mint/router_deprecated.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cashu/mint/router_deprecated.py b/cashu/mint/router_deprecated.py index 6a2b5f29..5bb2c086 100644 --- a/cashu/mint/router_deprecated.py +++ b/cashu/mint/router_deprecated.py @@ -15,8 +15,7 @@ PostMeltRequest_deprecated, PostMeltResponse_deprecated, PostMintQuoteRequest, - PostMintRequest, - PostMintResponse, + PostMintRequest_deprecated, PostMintResponse_deprecated, PostSplitRequest_Deprecated, PostSplitResponse_Deprecated, @@ -149,14 +148,14 @@ async def request_mint_deprecated(amount: int = 0) -> GetMintResponse_deprecated "/mint", name="Mint tokens", summary="Mint tokens in exchange for a Bitcoin payment that the user has made", - response_model=PostMintResponse, + response_model=PostMintResponse_deprecated, response_description=( "A list of blinded signatures that can be used to create proofs." ), deprecated=True, ) async def mint_deprecated( - payload: PostMintRequest, + payload: PostMintRequest_deprecated, hash: Optional[str] = None, payment_hash: Optional[str] = None, ) -> PostMintResponse_deprecated: