Skip to content

Commit

Permalink
Merge pull request #373 from dedis/fix-proxy-handlers-typo
Browse files Browse the repository at this point in the history
fix typos #315 #323
  • Loading branch information
pierluca authored Oct 4, 2023
2 parents 34ba6ca + 3c248d1 commit 7a341fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a341fd

Please sign in to comment.