Skip to content
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

Fix local contract upgrade #20296

Open
wants to merge 13 commits into
base: main-2.x
Choose a base branch
from
Open

Conversation

paulbrauner-da
Copy link
Contributor

@paulbrauner-da paulbrauner-da commented Nov 13, 2024

Fixes #20282.

We now always perform the upgrade validation check in the engine, so the NeedUpgradeVerification question is effecively unused. I'll remove it in a latter PR as it will require quite some cleanup.

I've removed test cases that test impossible situations if we assume the upload and type checkers have run, and which now fail because we try to import values.

I added a bunch of daml-script tests as a sanity check, but I don't cover the entire space (disclosed contracts, fetch, fetch by interface, etc.). I plan to do that as part of the "one true test" so I don't want to replicate too much work here.

@paulbrauner-da paulbrauner-da marked this pull request as ready for review November 14, 2024 17:28
signatories = recomputed.signatories,
observers = recomputed.observers,
keyOpt = recomputed.keyOpt.map(_.globalKeyWithMaintainers),
msg = errors.mkString("['", "', '", "']"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we do not want to keep the result of the two evaluations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created an issue and added a TODO

Copy link
Collaborator

@remyhaemmerle-da remyhaemmerle-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks

Co-authored-by: Remy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants