[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
This commit is contained in:
callebtc
2023-05-11 12:50:24 +02:00
committed by GitHub
parent c31f008fb4
commit 7f524927e2

View File

@@ -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()