Skip to content

Commit

Permalink
fixed proposaltype string bug (#1829)
Browse files Browse the repository at this point in the history
* fixed proposaltype string bug
  • Loading branch information
jaekwon committed Jul 26, 2018
1 parent 651bf68 commit e0e31c5
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:
case ProposalTypeText:
return "Text"
case 0x01:
case ProposalTypeParameterChange:
return "ParameterChange"
case 0x02:
case ProposalTypeSoftwareUpgrade:
return "SoftwareUpgrade"
default:
return ""
Expand Down

0 comments on commit e0e31c5

Please sign in to comment.