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

CreateAndExerciseCommand not working with java bindings #979

Closed
tweber-da opened this issue May 7, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@tweber-da
Copy link

commented May 7, 2019

Using CreateAndExerciseCommand in the java bindings fails with com.daml.ledger.javaapi.data.CommandUnknown: Command unknown CreateAndExerciseCommand.

gerolf-da added a commit that referenced this issue May 7, 2019

Java Bindings: Properly convert CreateAndExerciseCommand
The conversion of the CreateAndExerciseCommand in the Command base class
was missing. This also adds a missing test for that.

Fixes #979.
@gerolf-da

This comment has been minimized.

Copy link
Contributor

commented May 7, 2019

A workaround for this is:

CreateAndExerciseCommand myCmd = ...;
CommandsOuterClass.Commands.newBuilder()
                .addCommands(CommandsOuterClass.Command.newBuilder()
                        .setCreateAndExercise(myCmd.toProto()));

@bitonic bitonic closed this in #982 May 7, 2019

bitonic added a commit that referenced this issue May 7, 2019

Java Bindings: Properly convert CreateAndExerciseCommand (#982)
The conversion of the CreateAndExerciseCommand in the Command base class
was missing. This also adds a missing test for that.

Fixes #979.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.