hyperledger-labs / business-partner-agent

The Business Partner Agent is a SSI wallet and controller based on aries cloud agent python.
https://labs.hyperledger.org/business-partner-agent/
Apache License 2.0
56 stars 48 forks source link

Fix default schema creation when multi ledger support is enabled #811

Closed etschelp closed 1 year ago

etschelp commented 1 year ago

The default schemas are created when a) the schemas.yml config is enabled and b) if the schema is found on any ledger. This logic did not consider if the ledger where the default schema resides is the write/production ledger. So the creation of credential definition failed in some cases. As a fix the schema config now has a ledgerId and only if the ledgerId matches the writeLedgerId the default schema is loaded.

Related client changes: https://github.com/hyperledger-labs/acapy-java-client/pull/60/files