daml
daml copied to clipboard
Review error messages that can occur at runtime upgrade
We should review all the error that can be triggers by upgrading contract.
Here are some non exhaustive list of issue that may be necessary to tackle.
- In case of change of ensure clause definition the system fail, but do not make it clear it is because of the upgrade that it fails (Note that in general case we cannot if it really a problem of upgrade as we may not have the original package)
See https://github.com/digital-asset/daml/pull/17610#issuecomment-1790949941.
We should handle the error better for dropping/adding non-optional fields.
Can use https://docs.google.com/document/d/1qsWtp9rdrGhYn_yER3aDwvUtvPyqw66LFJR3hlRR3rE/edit as a base.