We came to the conclusion that it would be most stable to add contract keys --> pass them as route parameters --> query by the template and contract key to retrieve the specific contract.
I have read through the Contract Keys documentation but am looking for other examples to better understand how contract keys work.
When I tried adding contract keys to our adaptation of the
ex-bond-issuance repo, I was able to generate a
.dar file, but when I spun up the application in Sandbox, it was clear that the
init-script: DA.RefApps.Bond.Test.MarketSetupScript:setupMarket had never run.
In retrospect, I am surprised that I was able to generate a
.dar file without any errors while the market setup script fails to initiate the ledger.
There seem to be more downstream consequences than specifying a key, maintainer, and data type for the particular contracts that I would like to have a stable reference to (for visualization purposes).
Are there any other resources out there that can help me to correctly add contract keys to an existing model?