From 0821b28eac1ebc623d5dc089d94820e67b24e827 Mon Sep 17 00:00:00 2001 From: bitkarrot <73979971+bitkarrot@users.noreply.github.com> Date: Fri, 23 Feb 2024 01:09:53 -0800 Subject: [PATCH] rename self.auth to headers --- lnbits/wallets/zbd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/wallets/zbd.py b/lnbits/wallets/zbd.py index 46334c296..ea6b15320 100644 --- a/lnbits/wallets/zbd.py +++ b/lnbits/wallets/zbd.py @@ -27,11 +27,11 @@ class ZBDWallet(Wallet): raise ValueError("cannot initialize ZBDWallet: missing zbd_api_key") self.endpoint = self.normalize_endpoint(settings.zbd_api_endpoint) - self.auth = { + headers = { "apikey": settings.zbd_api_key, "User-Agent": settings.user_agent, } - self.client = httpx.AsyncClient(base_url=self.endpoint, headers=self.auth) + self.client = httpx.AsyncClient(base_url=self.endpoint, headers=headers) async def cleanup(self): try: