From 3c248d15f60cb02584cfd93b4f18b6778123bcb4 Mon Sep 17 00:00:00 2001 From: educ Date: Wed, 4 Oct 2023 13:11:42 +0200 Subject: [PATCH] fix typos #315 #323 --- proxy/election.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/election.go b/proxy/election.go index 813da53cb..4776be366 100644 --- a/proxy/election.go +++ b/proxy/election.go @@ -377,7 +377,7 @@ func (h *form) cancelForm(formIDHex string, w http.ResponseWriter, r *http.Reque } // create the transaction and add it to the pool - txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdCombineShares, evoting.FormArg, data) + txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdCancelForm, evoting.FormArg, data) if err != nil { http.Error(w, "failed to submit txn: "+err.Error(), http.StatusInternalServerError) return @@ -545,7 +545,7 @@ func (h *form) DeleteForm(w http.ResponseWriter, r *http.Request) { } // create the transaction and add it to the pool - txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdCombineShares, evoting.FormArg, data) + txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdDeleteForm, evoting.FormArg, data) if err != nil { http.Error(w, "failed to submit txn: "+err.Error(), http.StatusInternalServerError) return