Skip to content

Commit

Permalink
Merge pull request #1757 from irisnet/jiacheng/develop
Browse files Browse the repository at this point in the history
x/gov: fix the bug about turning VoteOption byte to String
  • Loading branch information
ebuchman authored Jul 19, 2018
2 parents 27840ab + 0471598 commit 7dd0e3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/gov/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ func (pt *ProposalKind) UnmarshalJSON(data []byte) error {
// Turns VoteOption byte to String
func (pt ProposalKind) String() string {
switch pt {
case 0x00:
return "Text"
case 0x01:
return "ParameterChange"
return "Text"
case 0x02:
return "ParameterChange"
case 0x03:
return "SoftwareUpgrade"
default:
return ""
Expand Down

0 comments on commit 7dd0e3f

Please sign in to comment.