Skip to content

Commit

Permalink
fix: update init_issuer_registry calls to include issuer_id argument
Browse files Browse the repository at this point in the history
Signed-off-by: Char Howland <char@indicio.tech>
  • Loading branch information
cjhowland committed May 3, 2023
1 parent 2fcd5f1 commit a2bb0c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ async def on_cred_def_event(profile: Profile, event: Event):
# without a delay
revoc = AnonCredsRevocation(profile)
await revoc.init_issuer_registry(
issuer_did,
cred_def_id,
rev_reg_size,
create_pending_rev_reg=create_pending_rev_reg,
Expand Down
1 change: 1 addition & 0 deletions aries_cloudagent/revocation/anoncreds.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ async def handle_full_registry(self, revoc_reg_id: str):
await txn.commit()

await self.init_issuer_registry(
registry.issuer_id,
registry.cred_def_id,
registry.max_cred_num,
registry.revoc_def_type,
Expand Down
3 changes: 3 additions & 0 deletions aries_cloudagent/revocation/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ async def create_rev_reg(request: web.BaseRequest):
try:
revoc = AnonCredsRevocation(profile)
issuer_rev_reg_rec = await revoc.init_issuer_registry(
# TODO: pass in issuer_id
credential_definition_id,
max_cred_num=max_cred_num,
notify=False,
Expand Down Expand Up @@ -1380,6 +1381,7 @@ async def generate(rr_record: IssuerRevRegRecord) -> dict:
if write_ledger and create_pending_rev_reg:
revoc = AnonCredsRevocation(profile)
await revoc.init_issuer_registry(
registry_record.issuer_id,
registry_record.cred_def_id,
registry_record.max_cred_num,
registry_record.revoc_def_type,
Expand Down Expand Up @@ -1483,6 +1485,7 @@ async def on_revocation_registry_endorsed_event(profile: Profile, event: Event):
else None
)
await revoc.init_issuer_registry(
registry_record.issuer_id,
registry_record.cred_def_id,
registry_record.max_cred_num,
registry_record.revoc_def_type,
Expand Down

0 comments on commit a2bb0c2

Please sign in to comment.