From c45352f4cff39b3850c1f01a13889d4d2a76d108 Mon Sep 17 00:00:00 2001 From: gudnuf <108303703+gudnuf@users.noreply.github.com> Date: Tue, 5 Aug 2025 03:53:35 -0700 Subject: [PATCH] fix "Expected currency USD, got USDT" when generating mint quote (#772) --- cashu/lightning/strike.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cashu/lightning/strike.py b/cashu/lightning/strike.py index 9d927f2..7142a8c 100644 --- a/cashu/lightning/strike.py +++ b/cashu/lightning/strike.py @@ -219,9 +219,9 @@ class StrikeWallet(LightningBackend): error_message = r.json()["data"]["message"] raise Exception(error_message) strike_quote = StrikePaymentQuoteResponse.parse_obj(r.json()) - if strike_quote.amount.currency != self.currency_map[self.unit]: + if strike_quote.amount.currency != self.currency: raise Exception( - f"Expected currency {self.currency_map[self.unit]}, got {strike_quote.amount.currency}" + f"Expected currency {self.currency}, got {strike_quote.amount.currency}" ) amount = Amount.from_float(float(strike_quote.amount.amount), self.unit) fee = self.fee_int(strike_quote, self.unit)