From 12bd930334e49192af835cc493631031ae25873a Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Thu, 30 Dec 2021 12:13:32 +0000 Subject: [PATCH] fix return for compatibility --- lnbits/extensions/watchonly/views_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extensions/watchonly/views_api.py b/lnbits/extensions/watchonly/views_api.py index a8c20e620..1122ef5cc 100644 --- a/lnbits/extensions/watchonly/views_api.py +++ b/lnbits/extensions/watchonly/views_api.py @@ -84,7 +84,7 @@ async def api_wallet_delete(wallet_id, w: WalletTypeInfo = Depends(require_admin async def api_fresh_address(wallet_id, w: WalletTypeInfo = Depends(get_key_type)): address = await get_fresh_address(wallet_id) - return address.dict() + return [address.dict()] @watchonly_ext.get("/api/v1/addresses/{wallet_id}")