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.
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