mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-03 15:54:20 +01:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user