From 0da155205f6ead9615a5129a698b2e043133f554 Mon Sep 17 00:00:00 2001 From: jamshale <31809382+jamshale@users.noreply.github.com> Date: Tue, 14 May 2024 09:23:55 -0700 Subject: [PATCH] Anoncreds - Send full registry list when getting revocation states (#2946) Signed-off-by: jamshale --- aries_cloudagent/anoncreds/default/legacy_indy/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aries_cloudagent/anoncreds/default/legacy_indy/registry.py b/aries_cloudagent/anoncreds/default/legacy_indy/registry.py index 31eca4f977..a5a89a35e2 100644 --- a/aries_cloudagent/anoncreds/default/legacy_indy/registry.py +++ b/aries_cloudagent/anoncreds/default/legacy_indy/registry.py @@ -692,7 +692,7 @@ async def _get_or_fetch_rev_reg_def_max_cred_num( def _indexes_to_bit_array(self, indexes: List[int], size: int) -> List[int]: """Turn a sequence of indexes into a full state bit array.""" - return [1 if index in indexes else 0 for index in range(1, size + 1)] + return [1 if index in indexes else 0 for index in range(0, size + 1)] async def _get_ledger(self, profile: Profile, rev_reg_def_id: str): async with profile.session() as session: