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

support interface inheritance of same-named choices in json-api #13923

Closed
6 tasks done
Tracked by #13973 ...
S11001001 opened this issue May 18, 2022 · 0 comments · Fixed by #14410
Closed
6 tasks done
Tracked by #13973 ...

support interface inheritance of same-named choices in json-api #13923

S11001001 opened this issue May 18, 2022 · 0 comments · Fixed by #14410
Assignees
Labels
component/json-api HTTP JSON API roadmap/interfaces https://digitalasset.atlassian.net/browse/DAML-56 team/ledger-clients Related to the Ledger Clients team's components.

Comments

@S11001001
Copy link
Contributor

S11001001 commented May 18, 2022

Design in #13668 (comment)

  • extend domain.ExerciseCommand and domain.CreateAndExerciseCommand with optional choiceInterfaceId
  • change PackageService.ResolveChoiceArgType: accepts the optional choice interface ID, returns Error \/ (TemplateId.RequiredPkg, iface.Type)
  • use the new extra returned data to infer choiceInterfaceId
  • in CommandService #exerciseCommand and #createAndExerciseCommand, use choiceInterfaceId to fill in the new ledger API fields
  • un-ignore this test and fix it

Depends on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/json-api HTTP JSON API roadmap/interfaces https://digitalasset.atlassian.net/browse/DAML-56 team/ledger-clients Related to the Ledger Clients team's components.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants