-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fwd port] Fix local contract upgrade #20743
Conversation
* Add metadata test for local contracts, fix logic * factorize the code * fix tests but also uncovered a problem with interfaces * use toInterfaceContractId in daml-script tests * fix typo in pretty-printer * add positive tests * fix exercise by interface * always perform the upgrade validation check in the engine * simplify error reporting * ensure package is loaded before importing global contract * simplify check code even more * allow losing observers that are also signatories * Apply suggestion Co-authored-by: Remy <remy.haemmerle@daml.com> --------- Co-authored-by: Remy <remy.haemmerle@daml.com>
Seems the tests you ported don't match the current state of upgrades errors in trySubmit. Carl hasn't ported some changes yet so they're still seen as a dev error |
Disabled the failing tests with a TODO and an explanation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Paul! Looks good :)
You may want to mention this ticket on the spreadsheet entry for key normalization, so we don't forget it :) |
I mention the corresponding work items in the SCU project board in the TODOs and I'll make sure we don't have any remaining TODOs mentioning these issues before closing them. |
Port of #20296.
SBuiltinFun
is so different from its 2.x version that I ported the change manually in commit e7e307d.Commit cec59bd is a cherry-pick of the original PR, except for the
SBuiltin
part, and I keep some test cases that the original PR deleted because we'll want them in a dynamically typed world.Commit c6848e7 makes these test cases that I kept pass.
Part of https://github.com/DACH-NY/canton/issues/23825.