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