Skip to content

Commit

Permalink
🐛 Fix registering issuer did
Browse files Browse the repository at this point in the history
Should be called as the issuer, with `create_transaction_for_endorser=True`. Previously was being called as endorser and automatically written to ledger
  • Loading branch information
ff137 authored and cl0ete committed Dec 6, 2024
1 parent e13468e commit fbcc927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/services/onboarding/issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ async def onboard_issuer_no_public_did(
)

issuer_did = await register_issuer_did(
endorser_controller=endorser_controller,
issuer_controller=issuer_controller,
issuer_label=issuer_label,
logger=bound_logger,
Expand Down
4 changes: 2 additions & 2 deletions app/services/onboarding/util/register_issuer_did.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ async def configure_endorsement(

async def register_issuer_did(
*,
endorser_controller: AcaPyClient,
issuer_controller: AcaPyClient,
issuer_label: str,
logger: Logger,
Expand All @@ -171,10 +170,11 @@ async def register_issuer_did(
issuer_did = await acapy_wallet.create_did(issuer_controller)

await acapy_ledger.register_nym_on_ledger(
endorser_controller,
issuer_controller,
did=issuer_did.did,
verkey=issuer_did.verkey,
alias=issuer_label,
create_transaction_for_endorser=True,
)

logger.debug("Accepting TAA on behalf of issuer")
Expand Down

0 comments on commit fbcc927

Please sign in to comment.