From 7f07c0c6fd16bdf084b4a48f69c474541f77fcf8 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 14 Jan 2023 13:28:48 +0100 Subject: [PATCH] comment --- cashu/wallet/wallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index 4484805..ca083e2 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -262,6 +262,7 @@ class LedgerAPI: reponse_dict = resp.json() self.raise_on_error(reponse_dict) try: + # backwards compatibility: parse promises < 0.7.1 with no "promises" field promises = PostMintResponseLegacy.parse_obj(reponse_dict) return self._construct_proofs(promises, secrets, rs) except: