Skip to content

Commit

Permalink
ticketvote: Fix json typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebp authored Apr 15, 2021
1 parent af2424f commit 5d5442c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions politeiad/plugins/ticketvote/ticketvote.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ type CastVoteDetails struct {
// Data generated by client
Token string `json:"token"` // Record token
Ticket string `json:"ticket"` // Ticket hash
VoteBit string `json:"votebits"` // Vote bit, hex encoded
VoteBit string `json:"votebit"` // Vote bit, hex encoded
Signature string `json:"signature"` // Client signature

// Metdata generated by server
Expand Down Expand Up @@ -486,7 +486,7 @@ var (
type CastVote struct {
Token string `json:"token"` // Record token
Ticket string `json:"ticket"` // Ticket ID
VoteBit string `json:"votebits"` // Selected vote bit, hex encoded
VoteBit string `json:"votebit"` // Selected vote bit, hex encoded
Signature string `json:"signature"` // Signature of Token+Ticket+VoteBit
}

Expand Down
4 changes: 2 additions & 2 deletions politeiawww/api/ticketvote/v1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ const (
type CastVote struct {
Token string `json:"token"` // Record token
Ticket string `json:"ticket"` // Ticket ID
VoteBit string `json:"votebits"` // Selected vote bit, hex encoded
VoteBit string `json:"votebit"` // Selected vote bit, hex encoded
Signature string `json:"signature"` // Signature of Token+Ticket+VoteBit
}

Expand Down Expand Up @@ -458,7 +458,7 @@ type DetailsReply struct {
type CastVoteDetails struct {
Token string `json:"token"` // Record token
Ticket string `json:"ticket"` // Ticket hash
VoteBit string `json:"votebits"` // Selected vote bit, hex encoded
VoteBit string `json:"votebit"` // Selected vote bit, hex encoded
Address string `json:"address"` // Address used in client signature
Signature string `json:"signature"` // Client signature
Receipt string `json:"receipt"` // Server sig of client sig
Expand Down

0 comments on commit 5d5442c

Please sign in to comment.