diff --git a/acapy_agent/ledger/indy_vdr.py b/acapy_agent/ledger/indy_vdr.py index d26734ec6f..aad8963cd5 100644 --- a/acapy_agent/ledger/indy_vdr.py +++ b/acapy_agent/ledger/indy_vdr.py @@ -739,8 +739,11 @@ async def update_endpoint_for_did( if all_exist_endpoints else None ) + existing_routing_keys = ( + all_exist_endpoints.get("routingKeys") if all_exist_endpoints else None + ) - if exist_endpoint_of_type != endpoint: + if exist_endpoint_of_type != endpoint or existing_routing_keys != routing_keys: if self.read_only: raise LedgerError( "Error cannot update endpoint when ledger is in read only mode"