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

remove inherited choices from Scala codegen, test interface/template IDs #14113

Merged
merged 4 commits into from
Jun 8, 2022

Conversation

S11001001
Copy link
Contributor

@S11001001 S11001001 commented Jun 7, 2022

Fixes #13926.

CHANGELOG_BEGIN
- [Scala codegen] Interface choices can no longer be invoked directly on
  template IDs, or via ``createAnd`` or ``key`` directly.  Instead, use
  ``toInterface[Ifn]`` before calling the relevant ``exercise*`` method.

  The resulting ledger commands now contain the correct interface ID
  rather than template ID for looking up the choice, but see #13993 for
  a caveat regarding create-and-exercise and exercise-by-key.
CHANGELOG_END

@S11001001 S11001001 added component/scala-ecosystem Scala development experience team/ledger-clients Related to the Ledger Clients team's components. labels Jun 7, 2022
@S11001001 S11001001 self-assigned this Jun 7, 2022
@S11001001 S11001001 marked this pull request as ready for review June 7, 2022 16:42
@S11001001 S11001001 requested review from ray-roestenburg-da and a team as code owners June 7, 2022 16:42
@S11001001 S11001001 requested review from a team and remyhaemmerle-da June 7, 2022 16:43
Base automatically changed from 13925-scala-codegen-template-interface-coercion to main June 7, 2022 16:55
S11001001 added 4 commits June 7, 2022 12:56
CHANGELOG_BEGIN
- [Scala codegen] Interface choices can no longer be invoked directly on
  template IDs, or via ``createAnd`` or ``key`` directly.  Instead, use
  ``toInterface[Ifn]`` before calling the relevant ``exercise*`` method.

  The resulting ledger commands now contain the correct interface ID
  rather than template ID for looking up the choice, but see #13993 for
  a caveat regarding create-and-exercise and exercise-by-key.
CHANGELOG_END
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.

LGTM. Thanks

@S11001001 S11001001 merged commit 4075389 into main Jun 8, 2022
@S11001001 S11001001 deleted the 13926-scala-no-inherited-choices branch June 8, 2022 12:37
tudor-da pushed a commit that referenced this pull request Jun 8, 2022
…IDs (#14113)

* inherited choices are gone, convert to interface
* use toInterface for conformance tests on interfaces

CHANGELOG_BEGIN
- [Scala codegen] Interface choices can no longer be invoked directly on
  template IDs, or via ``createAnd`` or ``key`` directly.  Instead, use
  ``toInterface[Ifn]`` before calling the relevant ``exercise*`` method.

  The resulting ledger commands now contain the correct interface ID
  rather than template ID for looking up the choice, but see #13993 for
  a caveat regarding create-and-exercise and exercise-by-key.
CHANGELOG_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/scala-ecosystem Scala development experience concern/testing team/ledger-clients Related to the Ledger Clients team's components.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove inherited choices and stop resolving them
3 participants