Skip to content

Commit

Permalink
Merge pull request #145 from bonipart/main
Browse files Browse the repository at this point in the history
Fix logical grouping issue in filters_to_use assignment
  • Loading branch information
kevinheavey authored Aug 26, 2024
2 parents 2b420d6 + 51abd56 commit 8e0a472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anchorpy/program/namespace/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8e0a472

Please sign in to comment.