From 51abd5654d8c39873e877c3eb4599f92df5468c0 Mon Sep 17 00:00:00 2001 From: bonipart Date: Mon, 3 Jun 2024 08:39:09 -0400 Subject: [PATCH] Fix logic for filters_to_use list construction --- src/anchorpy/program/namespace/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anchorpy/program/namespace/account.py b/src/anchorpy/program/namespace/account.py index 133e5fdb..72c49100 100644 --- a/src/anchorpy/program/namespace/account.py +++ b/src/anchorpy/program/namespace/account.py @@ -193,7 +193,7 @@ async def all( # noqa: A003 offset=0, bytes=bytes_arg, ) - filters_to_use = [base_memcmp_opt] + [] if filters is None else filters + filters_to_use = [base_memcmp_opt] + ([] if filters is None else filters) resp = await self._provider.connection.get_program_accounts( self._program_id, encoding="base64",