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 normalization and value translation of LF1.15 values in 1.17 contexts #20473

Merged
merged 13 commits into from
Dec 16, 2024

Conversation

samuel-williams-da
Copy link
Contributor

This resolves #20468

@@ -239,7 +240,7 @@ class SubmitErrors(majorLanguageVersion: LanguageMajorVersion) {
sealed case class UnhandledException(exc: Option[(Identifier, Value)]) extends SubmitError {
override def toDamlSubmitError(env: Env): SValue = {
val sValue = exc.map { case (ty, value) =>
SAny(Ast.TTyCon(ty), env.translateValue(Ast.TTyCon(ty), value).toOption.get)
SAny(Ast.TTyCon(ty), env.translateValue(Ast.TTyCon(ty), false, value).toOption.get)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We think this is okay as exceptions are not normalized, sam will verify

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have verified this is okay

@samuel-williams-da samuel-williams-da enabled auto-merge (squash) December 13, 2024 17:36
@samuel-williams-da samuel-williams-da merged commit cf968d0 into main-2.x Dec 16, 2024
18 checks passed
@samuel-williams-da samuel-williams-da deleted the remy-value-translator branch December 16, 2024 14:19
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