Skip to content

Commit 5d5442c

Browse files
authored
ticketvote: Fix json typo.
1 parent af2424f commit 5d5442c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

politeiad/plugins/ticketvote/ticketvote.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ type CastVoteDetails struct {
351351
// Data generated by client
352352
Token string `json:"token"` // Record token
353353
Ticket string `json:"ticket"` // Ticket hash
354-
VoteBit string `json:"votebits"` // Vote bit, hex encoded
354+
VoteBit string `json:"votebit"` // Vote bit, hex encoded
355355
Signature string `json:"signature"` // Client signature
356356

357357
// Metdata generated by server
@@ -486,7 +486,7 @@ var (
486486
type CastVote struct {
487487
Token string `json:"token"` // Record token
488488
Ticket string `json:"ticket"` // Ticket ID
489-
VoteBit string `json:"votebits"` // Selected vote bit, hex encoded
489+
VoteBit string `json:"votebit"` // Selected vote bit, hex encoded
490490
Signature string `json:"signature"` // Signature of Token+Ticket+VoteBit
491491
}
492492

politeiawww/api/ticketvote/v1/v1.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ const (
382382
type CastVote struct {
383383
Token string `json:"token"` // Record token
384384
Ticket string `json:"ticket"` // Ticket ID
385-
VoteBit string `json:"votebits"` // Selected vote bit, hex encoded
385+
VoteBit string `json:"votebit"` // Selected vote bit, hex encoded
386386
Signature string `json:"signature"` // Signature of Token+Ticket+VoteBit
387387
}
388388

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

0 commit comments

Comments
 (0)