private void ConvertThroughProto(ExerciseByKeyCommand source) { Com.Daml.Ledger.Api.V1.ExerciseByKeyCommand protoValue = source.ToProto(); var target = ExerciseByKeyCommand.FromProto(protoValue); Assert.True(source == target); }
public static ExerciseByKeyCommand FromProto(Com.Daml.Ledger.Api.V1.ExerciseByKeyCommand command) { return(new ExerciseByKeyCommand(Identifier.FromProto(command.TemplateId), Value.FromProto(command.ContractKey), command.Choice, Value.FromProto(command.ChoiceArgument))); }