Browse Source

Update views_api.py

fee_issues
Arc 5 years ago
committed by GitHub
parent
commit
a8f91b00a5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lnbits/extensions/withdraw/views_api.py

2
lnbits/extensions/withdraw/views_api.py

@ -110,7 +110,7 @@ def api_lnurlwithdraw(rand):
header = {"Content-Type": "application/json", "Grpc-Metadata-macaroon": str(user_fau[0][4])} header = {"Content-Type": "application/json", "Grpc-Metadata-macaroon": str(user_fau[0][4])}
data = {"payment_request": pr} data = {"payment_request": pr}
r = requests.post(url=url_for("https://lnbits.com/api/v1/channels/transactions", _external=True), headers=header, data=json.dumps(data)) r = requests.post(url=url_for("api_transactions", _external=True), headers=header, data=json.dumps(data))
r_json = r.json() r_json = r.json()
if "ERROR" in r_json: if "ERROR" in r_json:

Loading…
Cancel
Save