From 7f524927e2d5675e9906bfcb4697ea7a27213534 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 11 May 2023 12:50:24 +0200 Subject: [PATCH] [Wallet] backwards compat for breaking nut04 change use also payment_hash (#198) * wallet: backwards compat for breaking nut04 change use also payment_hash * make format --- cashu/wallet/wallet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index bdd892f..332ed8a 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -320,7 +320,10 @@ class LedgerAPI: resp = self.s.post( self.url + "/mint", json=outputs_payload.dict(), - params={"hash": hash}, + params={ + "hash": hash, + "payment_hash": hash, # backwards compatibility pre 0.12.0 + }, ) resp.raise_for_status() reponse_dict = resp.json()