Merge pull request #1757 from irisnet/jiacheng/develop

x/gov: fix the bug about turning VoteOption byte to String
This commit is contained in:
Ethan Buchman 2018-07-19 20:01:20 +02:00 committed by GitHub
commit 7dd0e3fdae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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 ""