Skip to content

Commit 3c248d1

Browse files
committed
fix typos #315 #323
1 parent 34ba6ca commit 3c248d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxy/election.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func (h *form) cancelForm(formIDHex string, w http.ResponseWriter, r *http.Reque
377377
}
378378

379379
// create the transaction and add it to the pool
380-
txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdCombineShares, evoting.FormArg, data)
380+
txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdCancelForm, evoting.FormArg, data)
381381
if err != nil {
382382
http.Error(w, "failed to submit txn: "+err.Error(), http.StatusInternalServerError)
383383
return
@@ -545,7 +545,7 @@ func (h *form) DeleteForm(w http.ResponseWriter, r *http.Request) {
545545
}
546546

547547
// create the transaction and add it to the pool
548-
txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdCombineShares, evoting.FormArg, data)
548+
txnID, lastBlock, err := h.mngr.SubmitTxn(r.Context(), evoting.CmdDeleteForm, evoting.FormArg, data)
549549
if err != nil {
550550
http.Error(w, "failed to submit txn: "+err.Error(), http.StatusInternalServerError)
551551
return

0 commit comments

Comments
 (0)